#[non_exhaustive]pub struct Preview {
pub id: GuildId,
pub name: CompactString,
pub icon: Option<ImageHash>,
pub splash: Option<ImageHash>,
pub discovery_splash: Option<ImageHash>,
pub emojis: Vec<Emoji>,
pub features: Vec<Feature>,
pub approximate_member_count: u32,
pub approximate_presence_count: u32,
pub description: Option<CompactString>,
pub stickers: Vec<Sticker>,
}Expand description
The preview of a guild, visible to non-members of discoverable guilds.
discord.js counterpart: GuildPreview.
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’s ID.
name: CompactStringThe guild’s name.
icon: Option<ImageHash>The icon hash.
splash: Option<ImageHash>The invite splash hash.
discovery_splash: Option<ImageHash>§emojis: Vec<Emoji>The guild’s custom emojis.
features: Vec<Feature>The guild’s enabled features.
approximate_member_count: u32The approximate number of members.
approximate_presence_count: u32The approximate number of online members.
description: Option<CompactString>The guild’s description.
stickers: Vec<Sticker>The guild’s custom stickers.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Preview
impl<'de> Deserialize<'de> for Preview
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
impl Eq for Preview
impl StructuralPartialEq for Preview
Auto Trait Implementations§
impl Forget for Preview
impl Freeze for Preview
impl Move for Preview
impl RefUnwindSafe for Preview
impl Send for Preview
impl Sync for Preview
impl Unpin for Preview
impl UnsafeUnpin for Preview
impl UnwindSafe for Preview
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