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
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
Methods
impl Scopes
[src]
impl Scopes
pub fn empty() -> Scopes
[src]
pub fn empty() -> Scopes
Create a scopes instance with no permissions requested
pub fn all() -> Scopes
[src]
pub fn all() -> Scopes
Create a scopes instance with all permissions requested