Struct orca::net::auth::Scopes[][src]

pub struct Scopes {
    pub identity: bool,
    pub edit: bool,
    pub flair: bool,
    pub history: bool,
    pub modconfig: bool,
    pub modflair: bool,
    pub modlog: bool,
    pub modposts: bool,
    pub modwiki: bool,
    pub mysubreddits: bool,
    pub privatemessages: bool,
    pub read: bool,
    pub report: bool,
    pub save: bool,
    pub submit: bool,
    pub subscribe: bool,
    pub vote: bool,
    pub wikiedit: bool,
    pub wikiread: bool,
    pub account: bool,
}

A struct representing scopes that an installed app can request permission for. To use, create an instance of the struct and set the fields you want to use to true.

Note: In the field documentation, "the user" refers to the currently authorized user

Fields

See detailed info about the user

Edit posts of the user

Flair posts of the user

Unknown

Unknown

Unknown

Unknown

Unknown

Unknown

Unknown

Unknown

Unknown

Report posts on behalf of the user

Save posts to the user's account

Submit posts on behalf of the user

Unknown

Vote on things on behalf of the user

Unknown

Unknown

Unknown

Methods

impl Scopes
[src]

Create a scopes instance with no permissions requested

Create a scopes instance with all permissions requested

Auto Trait Implementations

impl Send for Scopes

impl Sync for Scopes