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
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: 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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