#[non_exhaustive]pub struct ApplicationAuthorized {
pub integration_type: Option<IntegrationType>,
pub user: User,
pub scopes: Vec<Scope>,
pub guild: Option<Box<Guild>>,
}Expand description
The data of an Application Authorized webhook event.
discord.js counterpart: APIWebhookEventApplicationAuthorizedData (discord-api-types).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.integration_type: Option<IntegrationType>Where the app was installed: IntegrationType::GuildInstall (a guild) or
IntegrationType::UserInstall (the user’s account).
user: UserThe user who authorized the app.
scopes: Vec<Scope>The OAuth2 scopes the user authorized.
guild: Option<Box<Guild>>The guild the app was authorized in (guild installs).
Trait Implementations§
Source§impl Clone for ApplicationAuthorized
impl Clone for ApplicationAuthorized
Source§impl Debug for ApplicationAuthorized
impl Debug for ApplicationAuthorized
Source§impl<'de> Deserialize<'de> for ApplicationAuthorized
impl<'de> Deserialize<'de> for ApplicationAuthorized
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ApplicationAuthorized
Source§impl PartialEq for ApplicationAuthorized
impl PartialEq for ApplicationAuthorized
Source§impl Serialize for ApplicationAuthorized
impl Serialize for ApplicationAuthorized
impl StructuralPartialEq for ApplicationAuthorized
Auto Trait Implementations§
impl Forget for ApplicationAuthorized
impl Freeze for ApplicationAuthorized
impl Move for ApplicationAuthorized
impl RefUnwindSafe for ApplicationAuthorized
impl Send for ApplicationAuthorized
impl Sync for ApplicationAuthorized
impl Unpin for ApplicationAuthorized
impl UnsafeUnpin for ApplicationAuthorized
impl UnwindSafe for ApplicationAuthorized
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more