pub struct PremiumUsageData {
pub value: usize,
}Expand description
Structure for the data in PremiumUsage.
Currently only contains the number of uses of a premium perk.
§Reference
See https://docs.discord.food/resources/user#premium-usage-structure
Fields§
§value: usizeTotal number of uses for this perk
Trait Implementations§
Source§impl Clone for PremiumUsageData
impl Clone for PremiumUsageData
Source§fn clone(&self) -> PremiumUsageData
fn clone(&self) -> PremiumUsageData
Returns a duplicate 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 PremiumUsageData
impl Debug for PremiumUsageData
Source§impl<'de> Deserialize<'de> for PremiumUsageData
impl<'de> Deserialize<'de> for PremiumUsageData
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 From<PremiumUsageData> for usize
impl From<PremiumUsageData> for usize
Source§fn from(value: PremiumUsageData) -> Self
fn from(value: PremiumUsageData) -> Self
Converts to this type from the input type.
Source§impl From<usize> for PremiumUsageData
impl From<usize> for PremiumUsageData
Source§impl Ord for PremiumUsageData
impl Ord for PremiumUsageData
Source§fn cmp(&self, other: &PremiumUsageData) -> Ordering
fn cmp(&self, other: &PremiumUsageData) -> 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 for PremiumUsageData
impl PartialEq for PremiumUsageData
Source§impl PartialOrd for PremiumUsageData
impl PartialOrd for PremiumUsageData
Source§impl Serialize for PremiumUsageData
impl Serialize for PremiumUsageData
impl Copy for PremiumUsageData
impl Eq for PremiumUsageData
impl StructuralPartialEq for PremiumUsageData
Auto Trait Implementations§
impl Freeze for PremiumUsageData
impl RefUnwindSafe for PremiumUsageData
impl Send for PremiumUsageData
impl Sync for PremiumUsageData
impl Unpin for PremiumUsageData
impl UnwindSafe for PremiumUsageData
Blanket Implementations§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.