#[non_exhaustive]pub enum GuildInstallOwner {
Guild(GuildId),
BotDm,
}Expand description
The owner of a guild install in AuthorizingIntegrationOwners.
discord.js counterpart: the guild install entry of APIAuthorizingIntegrationOwnersMap (discord-api-types).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Guild(GuildId)
The interaction happened in this guild.
BotDm
The interaction happened in a DM with the app’s bot user (Discord sends "0").
Implementations§
Trait Implementations§
Source§impl Clone for GuildInstallOwner
impl Clone for GuildInstallOwner
impl Copy for GuildInstallOwner
Source§impl Debug for GuildInstallOwner
impl Debug for GuildInstallOwner
Source§impl<'de> Deserialize<'de> for GuildInstallOwner
impl<'de> Deserialize<'de> for GuildInstallOwner
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GuildInstallOwner
Source§impl Hash for GuildInstallOwner
impl Hash for GuildInstallOwner
Source§impl PartialEq for GuildInstallOwner
impl PartialEq for GuildInstallOwner
Source§impl Serialize for GuildInstallOwner
impl Serialize for GuildInstallOwner
impl StructuralPartialEq for GuildInstallOwner
Auto Trait Implementations§
impl Freeze for GuildInstallOwner
impl RefUnwindSafe for GuildInstallOwner
impl Send for GuildInstallOwner
impl Sync for GuildInstallOwner
impl Unpin for GuildInstallOwner
impl UnsafeUnpin for GuildInstallOwner
impl UnwindSafe for GuildInstallOwner
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