Guild

Struct Guild 

Source
pub struct Guild {
Show 61 fields pub id: Snowflake, pub name: String, pub icon: Option<String>, pub icon_hash: Option<String>, pub splash: Option<String>, pub discovery_splash: Option<String>, pub owner: Option<User>, pub owner_id: Option<Snowflake>, pub permissions: Option<String>, pub afk_channel_id: Option<Snowflake>, pub afk_timeout: Option<u8>, pub widget_enabled: Option<bool>, pub widget_channel_id: Option<Snowflake>, pub widget_channel: Option<Channel>, pub verification_level: Option<u8>, pub default_message_notifications: Option<u8>, pub explicit_content_filter: Option<u8>, pub roles: Vec<RoleObject>, pub emojis: Vec<Emoji>, pub features: Vec<String>, pub application_id: Option<String>, pub system_channel_id: Option<Snowflake>, pub system_channel_flags: Option<u8>, pub rules_channel_id: Option<String>, pub rules_channel: Option<String>, pub max_presences: Option<u64>, pub max_members: Option<u64>, pub vanity_url_code: Option<String>, pub description: Option<String>, pub banner: Option<String>, pub premium_tier: Option<u8>, pub premium_subscription_count: Option<u64>, pub preferred_locale: Option<String>, pub public_updates_channel_id: Option<Snowflake>, pub public_updates_channel: Option<Channel>, pub max_video_channel_users: Option<u8>, pub max_stage_video_channel_users: Option<u8>, pub approximate_member_count: Option<u64>, pub approximate_presence_count: Option<u64>, pub member_count: Option<u64>, pub presence_count: Option<u64>, pub welcome_screen: Option<WelcomeScreenObject>, pub nsfw_level: u8, pub nsfw: bool, pub stickers: Option<Vec<Sticker>>, pub premium_progress_bar_enabled: Option<bool>, pub joined_at: String, pub afk_channel: Option<Channel>, pub bans: Option<Vec<GuildBan>>, pub primary_category_id: Option<Snowflake>, pub large: Option<bool>, pub channels: Option<Vec<Channel>>, pub template_id: Option<Snowflake>, pub template: Option<GuildTemplate>, pub invites: Option<Vec<GuildInvite>>, pub voice_states: Option<Vec<VoiceState>>, pub webhooks: Option<Vec<Webhook>>, pub mfa_level: Option<u8>, pub region: Option<String>, pub unavailable: bool, pub parent: Option<String>,
}
Expand description

See https://discord.com/developers/docs/resources/guild

Fields§

§id: Snowflake§name: String§icon: Option<String>§icon_hash: Option<String>§splash: Option<String>§discovery_splash: Option<String>§owner: Option<User>§owner_id: Option<Snowflake>§permissions: Option<String>§afk_channel_id: Option<Snowflake>§afk_timeout: Option<u8>§widget_enabled: Option<bool>§widget_channel_id: Option<Snowflake>§widget_channel: Option<Channel>§verification_level: Option<u8>§default_message_notifications: Option<u8>§explicit_content_filter: Option<u8>§roles: Vec<RoleObject>§emojis: Vec<Emoji>§features: Vec<String>§application_id: Option<String>§system_channel_id: Option<Snowflake>§system_channel_flags: Option<u8>§rules_channel_id: Option<String>§rules_channel: Option<String>§max_presences: Option<u64>§max_members: Option<u64>§vanity_url_code: Option<String>§description: Option<String>§banner: Option<String>§premium_tier: Option<u8>§premium_subscription_count: Option<u64>§preferred_locale: Option<String>§public_updates_channel_id: Option<Snowflake>§public_updates_channel: Option<Channel>§max_video_channel_users: Option<u8>§max_stage_video_channel_users: Option<u8>§approximate_member_count: Option<u64>§approximate_presence_count: Option<u64>§member_count: Option<u64>§presence_count: Option<u64>§welcome_screen: Option<WelcomeScreenObject>§nsfw_level: u8§nsfw: bool§stickers: Option<Vec<Sticker>>§premium_progress_bar_enabled: Option<bool>§joined_at: String§afk_channel: Option<Channel>§bans: Option<Vec<GuildBan>>§primary_category_id: Option<Snowflake>§large: Option<bool>§channels: Option<Vec<Channel>>§template_id: Option<Snowflake>§template: Option<GuildTemplate>§invites: Option<Vec<GuildInvite>>§voice_states: Option<Vec<VoiceState>>§webhooks: Option<Vec<Webhook>>§mfa_level: Option<u8>§region: Option<String>§unavailable: bool§parent: Option<String>

Trait Implementations§

Source§

impl Clone for Guild

Source§

fn clone(&self) -> Guild

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Guild

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Guild

Source§

fn default() -> Guild

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Guild

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Guild

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Guild

§

impl RefUnwindSafe for Guild

§

impl Send for Guild

§

impl Sync for Guild

§

impl Unpin for Guild

§

impl UnwindSafe for Guild

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,