Enum fractal_dto::ScopeDTO [] [src]

pub enum ScopeDTO {
    Admin,
    User(u64),
    Public,
    Developer,
}

Enum that represents

Variants

Administration scope

This scope is used for administration purposes, and will not be enabled for public development accounts.

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.

Public scope

This scope is the public scope. Every client will have access to everything provided in the admin scope.

Developer scope

This scope is used for administration purposes, and will not be enabled for public development accounts.

Trait Implementations

impl Encodable for ScopeDTO
[src]

impl Decodable for ScopeDTO
[src]

impl Clone for ScopeDTO
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ScopeDTO
[src]

impl Eq for ScopeDTO
[src]

impl PartialEq for ScopeDTO
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for ScopeDTO
[src]

Formats the value using the given formatter.

impl Display for ScopeDTO
[src]

Formats the value using the given formatter.