pub struct Guild {Show fields
pub afk_channel_id: Option<ChannelId>,
pub afk_timeout: u64,
pub application_id: Option<ApplicationId>,
pub approximate_member_count: Option<u64>,
pub approximate_presence_count: Option<u64>,
pub banner: Option<String>,
pub channels: Vec<GuildChannel>,
pub default_message_notifications: DefaultMessageNotificationLevel,
pub description: Option<String>,
pub discovery_splash: Option<String>,
pub emojis: Vec<Emoji>,
pub explicit_content_filter: ExplicitContentFilter,
pub features: Vec<String>,
pub icon: Option<String>,
pub id: GuildId,
pub joined_at: Option<String>,
pub large: bool,
pub lazy: Option<bool>,
pub max_members: Option<u64>,
pub max_presences: Option<u64>,
pub max_video_channel_users: Option<u64>,
pub member_count: Option<u64>,
pub members: Vec<Member>,
pub mfa_level: MfaLevel,
pub name: String,
pub nsfw: bool,
pub owner_id: UserId,
pub owner: Option<bool>,
pub permissions: Option<Permissions>,
pub preferred_locale: String,
pub premium_subscription_count: Option<u64>,
pub premium_tier: PremiumTier,
pub presences: Vec<Presence>,
pub region: String,
pub roles: Vec<Role>,
pub rules_channel_id: Option<ChannelId>,
pub splash: Option<String>,
pub system_channel_flags: SystemChannelFlags,
pub system_channel_id: Option<ChannelId>,
pub unavailable: bool,
pub vanity_url_code: Option<String>,
pub verification_level: VerificationLevel,
pub voice_states: Vec<VoiceState>,
pub widget_channel_id: Option<ChannelId>,
pub widget_enabled: Option<bool>,
}
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Serialize this value into the given Serde serializer. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
Immutably borrows from an owned value. Read more
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 current Span
, returning an
Instrumented
wrapper. Read more
impl<T, U> Into<U> for T where
U: From<T>,
[src]
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
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.