Enum fractal_api::oauth::Scope [] [src]

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

Enum that represents

Variants

Admin

Administration 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.

Public

Public scope

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

Developer

Developer scope

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

Trait Implementations

impl Encodable for Scope
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Decodable for Scope
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Scope, __D::Error>

impl Clone for Scope
[src]

fn clone(&self) -> Scope

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 Copy for Scope
[src]

impl Eq for Scope
[src]

impl PartialEq for Scope
[src]

fn eq(&self, __arg_0: &Scope) -> bool

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

fn ne(&self, __arg_0: &Scope) -> bool

This method tests for !=.

impl PartialOrd for Scope
[src]

fn partial_cmp(&self, __arg_0: &Scope) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more

fn lt(&self, __arg_0: &Scope) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more

fn le(&self, __arg_0: &Scope) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

fn gt(&self, __arg_0: &Scope) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more

fn ge(&self, __arg_0: &Scope) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Debug for Scope
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for Scope
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl FromStr for Scope
[src]

type Err = Error

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Scope>

Parses a string s to return a value of this type. Read more