Struct discord_flows::model::guild::GuildPreview
source · 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, Global>,
pub features: Vec<String, Global>,
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: GuildIdThe guild Id.
name: StringThe 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, Global>The custom guild emojis.
features: Vec<String, Global>The guild features. See Guild::features
approximate_member_count: u64Approximate number of members in this guild.
approximate_presence_count: u64Approximate number of online members in this guild.
description: Option<String>The description for the guild, if the guild has the DISCOVERABLE feature.
Trait Implementations§
source§impl Clone for GuildPreview
impl Clone for GuildPreview
source§fn clone(&self) -> GuildPreview
fn clone(&self) -> GuildPreview
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GuildPreview
impl Debug for GuildPreview
source§impl<'de> Deserialize<'de> for GuildPreview
impl<'de> Deserialize<'de> for GuildPreview
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<GuildPreview, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<GuildPreview, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for GuildPreview
impl Serialize for GuildPreview
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. 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§
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