Enum fractal_dto::v1::oauth::ScopeDTO
[−]
[src]
pub enum ScopeDTO {
Admin,
User(u64),
Public,
}Enum that represents a scope.
Variants
AdminAdministration scope
This scope is used for administration purposes, and will not be enabled for public development accounts.
User(u64)User scope
This scope will provide access to user functionality, such as creating transactions and editing user information. It contains the user ID for which the token is valid.
PublicPublic scope
This scope is the public scope. Every client will have access to everything provided in the public scope.
Trait Implementations
impl Debug for ScopeDTO[src]
impl Clone for ScopeDTO[src]
fn clone(&self) -> ScopeDTO
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Decodable for ScopeDTO[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ScopeDTO, __D::Error>
Deserialize a value using a Decoder.
impl Encodable for ScopeDTO[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder.
impl PartialEq for ScopeDTO[src]
fn eq(&self, __arg_0: &ScopeDTO) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ScopeDTO) -> bool
This method tests for !=.