Struct serenity::model::id::ApplicationId
source · #[repr(packed(1))]pub struct ApplicationId(/* private fields */);
Expand description
An identifier for an Application.
Implementations§
Trait Implementations§
source§impl AsRef<ApplicationId> for ApplicationId
impl AsRef<ApplicationId> for ApplicationId
source§impl Clone for ApplicationId
impl Clone for ApplicationId
source§fn clone(&self) -> ApplicationId
fn clone(&self) -> ApplicationId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ApplicationId
impl Debug for ApplicationId
source§impl Default for ApplicationId
impl Default for ApplicationId
source§impl<'de> Deserialize<'de> for ApplicationId
impl<'de> Deserialize<'de> for ApplicationId
source§fn 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
source§impl Display for ApplicationId
impl Display for ApplicationId
source§impl<'a> From<&'a ApplicationId> for ApplicationId
impl<'a> From<&'a ApplicationId> for ApplicationId
source§fn from(id: &'a ApplicationId) -> ApplicationId
fn from(id: &'a ApplicationId) -> ApplicationId
Converts to this type from the input type.
source§impl From<ApplicationId> for NonZeroI64
impl From<ApplicationId> for NonZeroI64
source§fn from(id: ApplicationId) -> NonZeroI64
fn from(id: ApplicationId) -> NonZeroI64
Converts to this type from the input type.
source§impl From<ApplicationId> for NonZeroU64
impl From<ApplicationId> for NonZeroU64
source§fn from(id: ApplicationId) -> NonZeroU64
fn from(id: ApplicationId) -> NonZeroU64
Converts to this type from the input type.
source§impl From<ApplicationId> for i64
impl From<ApplicationId> for i64
source§fn from(id: ApplicationId) -> i64
fn from(id: ApplicationId) -> i64
Converts to this type from the input type.
source§impl From<ApplicationId> for u64
impl From<ApplicationId> for u64
source§fn from(id: ApplicationId) -> u64
fn from(id: ApplicationId) -> u64
Converts to this type from the input type.
source§impl From<NonZero<u64>> for ApplicationId
impl From<NonZero<u64>> for ApplicationId
source§fn from(id: NonZeroU64) -> ApplicationId
fn from(id: NonZeroU64) -> ApplicationId
Converts to this type from the input type.
source§impl From<u64> for ApplicationId
impl From<u64> for ApplicationId
source§fn from(id: u64) -> ApplicationId
fn from(id: u64) -> ApplicationId
Converts to this type from the input type.
source§impl FromStr for ApplicationId
impl FromStr for ApplicationId
source§impl Hash for ApplicationId
impl Hash for ApplicationId
source§impl Ord for ApplicationId
impl Ord for ApplicationId
source§fn cmp(&self, other: &ApplicationId) -> Ordering
fn cmp(&self, other: &ApplicationId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<u64> for ApplicationId
impl PartialEq<u64> for ApplicationId
source§impl PartialEq for ApplicationId
impl PartialEq for ApplicationId
source§fn eq(&self, other: &ApplicationId) -> bool
fn eq(&self, other: &ApplicationId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ApplicationId
impl PartialOrd for ApplicationId
source§fn partial_cmp(&self, other: &ApplicationId) -> Option<Ordering>
fn partial_cmp(&self, other: &ApplicationId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ApplicationId
impl Serialize for ApplicationId
impl Copy for ApplicationId
impl Eq for ApplicationId
impl StructuralPartialEq for ApplicationId
Auto Trait Implementations§
impl RefUnwindSafe for ApplicationId
impl Send for ApplicationId
impl Sync for ApplicationId
impl Unpin for ApplicationId
impl UnwindSafe for ApplicationId
Blanket Implementations§
source§impl<T> ArgumentConvert for Twhere
T: FromStr,
impl<T> ArgumentConvert for Twhere
T: FromStr,
§type Err = <T as FromStr>::Err
type Err = <T as FromStr>::Err
Available on crate features
utils
and client
only.The associated error which can be returned from parsing.
source§fn convert<'life0, 'async_trait>(
__arg0: impl CacheHttp + 'async_trait,
__arg1: Option<GuildId>,
__arg2: Option<ChannelId>,
s: &'life0 str
) -> Pin<Box<dyn Future<Output = Result<T, <T as ArgumentConvert>::Err>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn convert<'life0, 'async_trait>(
__arg0: impl CacheHttp + 'async_trait,
__arg1: Option<GuildId>,
__arg2: Option<ChannelId>,
s: &'life0 str
) -> Pin<Box<dyn Future<Output = Result<T, <T as ArgumentConvert>::Err>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Available on crate features
utils
and client
only.Parses a string
s
as a command parameter of this type.source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.