Struct serenity::model::guild::GuildPreview [−][src]
#[non_exhaustive]pub struct GuildPreview {
pub id: GuildId,
pub name: String,
pub icon: Option<String>,
pub splash: Option<String>,
pub discovery_splash: Option<String>,
pub emojis: Vec<Emoji>,
pub features: Vec<String>,
pub approximate_member_count: u64,
pub approximate_presence_count: u64,
pub description: Option<String>,
}
Expand description
Preview Guild
information.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: GuildId
The guild Id.
name: String
The guild name.
icon: Option<String>
The guild icon hash if it has one.
splash: Option<String>
The guild splash hash if it has one.
discovery_splash: Option<String>
The guild discovery splash hash it it has one.
emojis: Vec<Emoji>
The custom guild emojis.
features: Vec<String>
The guild features. See Guild::features
approximate_member_count: u64
Approximate number of members in this guild.
approximate_presence_count: u64
Approximate number of online members in this guild.
description: Option<String>
The description for the guild, if the guild has the DISCOVERABLE
feature.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for GuildPreview
impl Send for GuildPreview
impl Sync for GuildPreview
impl Unpin for GuildPreview
impl UnwindSafe for GuildPreview
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more