Struct serenity::model::invite::InviteGuild [−][src]
#[non_exhaustive]pub struct InviteGuild { pub id: GuildId, pub icon: Option<String>, pub name: String, pub splash: Option<String>, pub text_channel_count: Option<u64>, pub voice_channel_count: Option<u64>, }
Expand description
A minimal amount of information about the guild an invite points to.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct {{ .. }}
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: GuildId
icon: Option<String>
name: String
splash: Option<String>
text_channel_count: Option<u64>
voice_channel_count: Option<u64>
Implementations
impl InviteGuild
[src]
impl InviteGuild
[src]pub fn splash_url(&self) -> Option<String>
[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]
impl InviteGuild
[src]pub async fn shard_id(&self, cache: impl AsRef<Cache>) -> u64
[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]
impl Clone for InviteGuild
[src]fn clone(&self) -> InviteGuild
[src]
fn clone(&self) -> InviteGuild
[src]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
[src]impl<'de> Deserialize<'de> for InviteGuild
[src]
impl<'de> Deserialize<'de> for InviteGuild
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl<'a> From<&'a InviteGuild> for GuildId
[src]
impl<'a> From<&'a InviteGuild> for GuildId
[src]fn from(invite_guild: &InviteGuild) -> GuildId
[src]
fn from(invite_guild: &InviteGuild) -> GuildId
[src]Gets the Id of Invite Guild struct.
impl From<InviteGuild> for GuildId
[src]
impl From<InviteGuild> for GuildId
[src]fn from(invite_guild: InviteGuild) -> GuildId
[src]
fn from(invite_guild: InviteGuild) -> GuildId
[src]Gets the Id of Invite Guild struct.
impl Serialize for InviteGuild
[src]
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,