#[non_exhaustive]pub struct AuthorizingIntegrationOwners {
pub guild_install: Option<GuildInstallOwner>,
pub user_install: Option<UserId>,
}Expand description
The installations that authorized an interaction,
keyed by IntegrationType.
A key is only present when the app is installed in that context, the interaction’s context supports it and, for commands, the command supports that installation context.
discord.js counterpart: authorizingIntegrationOwners.
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.guild_install: Option<GuildInstallOwner>The guild install (key "0").
user_install: Option<UserId>The ID of the user who installed the app (key "1").
Trait Implementations§
Source§impl Clone for AuthorizingIntegrationOwners
impl Clone for AuthorizingIntegrationOwners
impl Copy for AuthorizingIntegrationOwners
Source§impl Debug for AuthorizingIntegrationOwners
impl Debug for AuthorizingIntegrationOwners
Source§impl<'de> Deserialize<'de> for AuthorizingIntegrationOwners
impl<'de> Deserialize<'de> for AuthorizingIntegrationOwners
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 AuthorizingIntegrationOwners
Source§impl Hash for AuthorizingIntegrationOwners
impl Hash for AuthorizingIntegrationOwners
impl StructuralPartialEq for AuthorizingIntegrationOwners
Auto Trait Implementations§
impl Freeze for AuthorizingIntegrationOwners
impl RefUnwindSafe for AuthorizingIntegrationOwners
impl Send for AuthorizingIntegrationOwners
impl Sync for AuthorizingIntegrationOwners
impl Unpin for AuthorizingIntegrationOwners
impl UnsafeUnpin for AuthorizingIntegrationOwners
impl UnwindSafe for AuthorizingIntegrationOwners
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