pub struct PremiumUsage {
pub nitro_sticker_sends: PremiumUsageData,
pub total_animated_emojis: PremiumUsageData,
pub total_global_emojis: PremiumUsageData,
pub total_large_uploads: PremiumUsageData,
pub total_hd_streams: PremiumUsageData,
pub hd_hours_streamed: PremiumUsageData,
}Expand description
Structure which defines the local user’s premium perk usage.
§Reference
See https://docs.discord.food/resources/user#get-user-premium-usage
Fields§
§nitro_sticker_sends: PremiumUsageDataNumber of Nitro stickers the user has sent
total_animated_emojis: PremiumUsageDataNumber of animated emojis the user has sent
total_global_emojis: PremiumUsageDataNumber of global emojis the user has sent
total_large_uploads: PremiumUsageDataNumber of large uploads the user has made
total_hd_streams: PremiumUsageDataNumber of times the user has streamed in HD
hd_hours_streamed: PremiumUsageDataNumber of hours the user has streamed in HD
Trait Implementations§
Source§impl Clone for PremiumUsage
impl Clone for PremiumUsage
Source§fn clone(&self) -> PremiumUsage
fn clone(&self) -> PremiumUsage
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 PremiumUsage
impl Debug for PremiumUsage
Source§impl<'de> Deserialize<'de> for PremiumUsage
impl<'de> Deserialize<'de> for PremiumUsage
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 Ord for PremiumUsage
impl Ord for PremiumUsage
Source§fn cmp(&self, other: &PremiumUsage) -> Ordering
fn cmp(&self, other: &PremiumUsage) -> 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 PremiumUsage
impl PartialEq for PremiumUsage
Source§impl PartialOrd for PremiumUsage
impl PartialOrd for PremiumUsage
Source§impl Serialize for PremiumUsage
impl Serialize for PremiumUsage
impl Copy for PremiumUsage
impl Eq for PremiumUsage
impl StructuralPartialEq for PremiumUsage
Auto Trait Implementations§
impl Freeze for PremiumUsage
impl RefUnwindSafe for PremiumUsage
impl Send for PremiumUsage
impl Sync for PremiumUsage
impl Unpin for PremiumUsage
impl UnwindSafe for PremiumUsage
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.