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