[−][src]Struct serenity::model::invite::InviteGuild
A minimal amount of information about the guild an invite points to.
Fields
id: GuildId
icon: Option<String>
name: String
splash_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 async fn shard_id<'_>(&'_ self, cache: impl AsRef<Cache>) -> 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]
fn clone(&self) -> InviteGuild
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InviteGuild
[src]
impl<'de> Deserialize<'de> for InviteGuild
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a> From<&'a InviteGuild> for GuildId
[src]
fn from(invite_guild: &InviteGuild) -> GuildId
[src]
Gets the Id of Invite Guild struct.
impl From<InviteGuild> for GuildId
[src]
fn from(invite_guild: InviteGuild) -> GuildId
[src]
Gets the Id of Invite Guild struct.
impl Serialize for InviteGuild
[src]
Auto Trait Implementations
impl RefUnwindSafe for InviteGuild
impl Send for InviteGuild
impl Sync for InviteGuild
impl Unpin for InviteGuild
impl UnwindSafe for InviteGuild
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,