Struct orca::net::auth::Scopes

source ·
pub struct Scopes {
Show 20 fields 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,
}
Expand description

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§

§identity: bool

See detailed info about the user

§edit: bool

Edit posts of the user

§flair: bool

Flair posts of the user

§history: bool

Unknown

§modconfig: bool

Unknown

§modflair: bool

Unknown

§modlog: bool

Unknown

§modposts: bool

Unknown

§modwiki: bool

Unknown

§mysubreddits: bool

Unknown

§privatemessages: bool

Unknown

§read: bool

Unknown

§report: bool

Report posts on behalf of the user

§save: bool

Save posts to the user’s account

§submit: bool

Submit posts on behalf of the user

§subscribe: bool

Unknown

§vote: bool

Vote on things on behalf of the user

§wikiedit: bool

Unknown

§wikiread: bool

Unknown

§account: bool

Unknown

Implementations§

Create a scopes instance with no permissions requested

Create a scopes instance with all permissions requested

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.