#[non_exhaustive]pub struct InteractionGuild {
pub id: GuildId,
pub locale: Option<Locale>,
pub features: Vec<Feature>,
}Expand description
The partial guild an interaction was triggered in (D-051).
discord.js counterpart: APIPartialInteractionGuild (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.id: GuildIdThe guild’s ID.
locale: Option<Locale>The guild’s preferred locale.
features: Vec<Feature>The guild’s features.
Trait Implementations§
Source§impl Clone for InteractionGuild
impl Clone for InteractionGuild
Source§impl Debug for InteractionGuild
impl Debug for InteractionGuild
Source§impl<'de> Deserialize<'de> for InteractionGuild
impl<'de> Deserialize<'de> for InteractionGuild
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 InteractionGuild
Source§impl PartialEq for InteractionGuild
impl PartialEq for InteractionGuild
Source§impl Serialize for InteractionGuild
impl Serialize for InteractionGuild
impl StructuralPartialEq for InteractionGuild
Auto Trait Implementations§
impl Freeze for InteractionGuild
impl RefUnwindSafe for InteractionGuild
impl Send for InteractionGuild
impl Sync for InteractionGuild
impl Unpin for InteractionGuild
impl UnsafeUnpin for InteractionGuild
impl UnwindSafe for InteractionGuild
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