pub struct InteractionPartialGuild {
pub id: Option<Id<GuildMarker>>,
pub features: Option<Vec<GuildFeature>>,
pub locale: Option<String>,
}
Expand description
Partial guild containing only the fields sent in the partial guild in interactions.
§Note that the field locale
does not exists on the full guild
object, and is only found here. See https://github.com/discord/discord-api-docs/issues/6938 for more info.
Fields§
§id: Option<Id<GuildMarker>>
Id of the guild.
features: Option<Vec<GuildFeature>>
Enabled guild features
locale: Option<String>
Trait Implementations§
Source§impl Clone for InteractionPartialGuild
impl Clone for InteractionPartialGuild
Source§fn clone(&self) -> InteractionPartialGuild
fn clone(&self) -> InteractionPartialGuild
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InteractionPartialGuild
impl Debug for InteractionPartialGuild
Source§impl<'de> Deserialize<'de> for InteractionPartialGuild
impl<'de> Deserialize<'de> for InteractionPartialGuild
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
Source§impl Hash for InteractionPartialGuild
impl Hash for InteractionPartialGuild
Source§impl PartialEq for InteractionPartialGuild
impl PartialEq for InteractionPartialGuild
Source§impl Serialize for InteractionPartialGuild
impl Serialize for InteractionPartialGuild
impl Eq for InteractionPartialGuild
impl StructuralPartialEq for InteractionPartialGuild
Auto Trait Implementations§
impl Freeze for InteractionPartialGuild
impl RefUnwindSafe for InteractionPartialGuild
impl Send for InteractionPartialGuild
impl Sync for InteractionPartialGuild
impl Unpin for InteractionPartialGuild
impl UnwindSafe for InteractionPartialGuild
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