#[non_exhaustive]pub struct GuildPreview {
pub id: GuildId,
pub name: String,
pub icon: Option<ImageHash>,
pub splash: Option<ImageHash>,
pub discovery_splash: Option<ImageHash>,
pub emojis: Vec<Emoji>,
pub features: Vec<String>,
pub approximate_member_count: u64,
pub approximate_presence_count: u64,
pub description: Option<String>,
pub stickers: Vec<Sticker>,
}
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<ImageHash>
The guild icon hash if it has one.
splash: Option<ImageHash>
The guild splash hash if it has one.
discovery_splash: Option<ImageHash>
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.
stickers: Vec<Sticker>
Custom guild stickers.
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<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 Freeze for GuildPreview
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