Struct serenity::model::invite::InviteGuild [−][src]
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>, }
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>
Methods
impl InviteGuild
[src]
impl InviteGuild
pub fn splash_url(&self) -> Option<String>
[src]
pub fn splash_url(&self) -> Option<String>
Returns the formatted URL of the guild's splash image, if one exists.
impl InviteGuild
[src]
impl InviteGuild
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 From<InviteGuild> for GuildId
[src]
impl From<InviteGuild> for GuildId
fn from(invite_guild: InviteGuild) -> GuildId
[src]
fn from(invite_guild: InviteGuild) -> GuildId
Gets the Id of Invite Guild struct.
impl<'a> From<&'a InviteGuild> for GuildId
[src]
impl<'a> From<&'a InviteGuild> for GuildId
fn from(invite_guild: &InviteGuild) -> GuildId
[src]
fn from(invite_guild: &InviteGuild) -> GuildId
Gets the Id of Invite Guild struct.
impl Clone for InviteGuild
[src]
impl Clone for InviteGuild
fn clone(&self) -> InviteGuild
[src]
fn clone(&self) -> InviteGuild
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for InviteGuild
[src]
impl Debug for InviteGuild
Auto Trait Implementations
impl Send for InviteGuild
impl Send for InviteGuild
impl Sync for InviteGuild
impl Sync for InviteGuild