#[non_exhaustive]pub struct InviteGuild {
pub id: GuildId,
pub name: CompactString,
pub splash: Option<ImageHash>,
pub banner: Option<ImageHash>,
pub description: Option<CompactString>,
pub icon: Option<ImageHash>,
pub features: Vec<Feature>,
pub verification_level: VerificationLevel,
pub vanity_url_code: Option<CompactString>,
pub nsfw_level: AgeRestrictionLevel,
pub premium_subscription_count: Option<u32>,
pub welcome_screen: Option<WelcomeScreen>,
}Expand description
The partial guild of an Invite (D-051).
discord.js counterpart: InviteGuild.
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.
name: CompactStringThe guild’s name.
splash: Option<ImageHash>The invite splash hash.
The banner hash.
description: Option<CompactString>The guild’s description.
icon: Option<ImageHash>The icon hash.
features: Vec<Feature>The guild’s features.
verification_level: VerificationLevelThe guild’s verification level.
vanity_url_code: Option<CompactString>The vanity invite code.
nsfw_level: AgeRestrictionLevelThe guild’s age-restriction level.
The number of boosts.
welcome_screen: Option<WelcomeScreen>The welcome screen of a Community guild.
Trait Implementations§
Source§impl Clone for InviteGuild
impl Clone for InviteGuild
Source§impl Debug for InviteGuild
impl Debug for InviteGuild
Source§impl<'de> Deserialize<'de> for InviteGuild
impl<'de> Deserialize<'de> for InviteGuild
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 InviteGuild
Source§impl PartialEq for InviteGuild
impl PartialEq for InviteGuild
Source§impl Serialize for InviteGuild
impl Serialize for InviteGuild
impl StructuralPartialEq for InviteGuild
Auto Trait Implementations§
impl Freeze for InviteGuild
impl RefUnwindSafe for InviteGuild
impl Send for InviteGuild
impl Sync for InviteGuild
impl Unpin for InviteGuild
impl UnsafeUnpin for InviteGuild
impl UnwindSafe for InviteGuild
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