#[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
sourceimpl InviteGuild
impl InviteGuild
sourcepub fn splash_url(&self) -> Option<String>
Available on crate feature model
only.
pub fn splash_url(&self) -> Option<String>
model
only.Returns the formatted URL of the guild’s splash image, if one exists.
sourceimpl InviteGuild
impl InviteGuild
sourcepub fn shard_id(&self, cache: impl AsRef<Cache>) -> u64
Available on crate features cache
and utils
and model
only.
pub fn shard_id(&self, cache: impl AsRef<Cache>) -> u64
cache
and utils
and model
only.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
sourceimpl Clone for InviteGuild
impl Clone for InviteGuild
sourcefn clone(&self) -> InviteGuild
fn clone(&self) -> InviteGuild
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InviteGuild
impl Debug for InviteGuild
sourceimpl<'de> Deserialize<'de> for InviteGuild
impl<'de> Deserialize<'de> for InviteGuild
sourcefn 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
sourceimpl<'a> From<&'a InviteGuild> for GuildId
impl<'a> From<&'a InviteGuild> for GuildId
sourcefn from(invite_guild: &InviteGuild) -> GuildId
fn from(invite_guild: &InviteGuild) -> GuildId
Gets the Id of Invite Guild struct.
sourceimpl From<InviteGuild> for GuildId
impl From<InviteGuild> for GuildId
sourcefn from(invite_guild: InviteGuild) -> GuildId
fn from(invite_guild: InviteGuild) -> GuildId
Gets the Id of Invite Guild struct.
sourceimpl Serialize for InviteGuild
impl Serialize for InviteGuild
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more