[][src]Struct serenity::model::invite::InviteGuild

pub struct InviteGuild {
    pub id: GuildId,
    pub icon: Option<String>,
    pub name: String,
    pub splash_hash: Option<String>,
    pub text_channel_count: Option<u64>,
    pub voice_channel_count: Option<u64>,
    // some fields omitted
}

A minimal amount of information about the guild an invite points to.

Fields

id: GuildIdicon: Option<String>name: Stringsplash_hash: Option<String>text_channel_count: Option<u64>voice_channel_count: Option<u64>

Implementations

impl InviteGuild[src]

pub fn splash_url(&self) -> Option<String>[src]

Returns the formatted URL of the guild's splash image, if one exists.

impl InviteGuild[src]

pub fn shard_id(&self, cache: impl AsRef<CacheRwLock>) -> u64[src]

Returns the Id of the shard associated with the guild.

When the cache is enabled this will automatically retrieve the total number of shards.

Note: When the cache is enabled, this function unlocks the cache to retrieve the total number of shards in use. If you already have the total, consider using utils::shard_id.

Trait Implementations

impl Clone for InviteGuild[src]

impl Debug for InviteGuild[src]

impl<'de> Deserialize<'de> for InviteGuild[src]

impl<'a> From<&'a InviteGuild> for GuildId[src]

pub fn from(invite_guild: &InviteGuild) -> GuildId[src]

Gets the Id of Invite Guild struct.

impl From<InviteGuild> for GuildId[src]

pub fn from(invite_guild: InviteGuild) -> GuildId[src]

Gets the Id of Invite Guild struct.

impl Serialize for InviteGuild[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> DebugAny for T where
    T: Any + Debug
[src]

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,