pub struct NoSkipChatBoostSourcePremium {
pub source: String,
pub user: BoxWrapper<Unbox<User>>,
}Expand description
Companion type to ChatBoostSourcePremium that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§source: StringSource of the boost, always “premium”
user: BoxWrapper<Unbox<User>>User that boosted the chat
Implementations§
Source§impl NoSkipChatBoostSourcePremium
impl NoSkipChatBoostSourcePremium
pub fn skip(self) -> ChatBoostSourcePremium
Trait Implementations§
Source§impl Clone for NoSkipChatBoostSourcePremium
impl Clone for NoSkipChatBoostSourcePremium
Source§fn clone(&self) -> NoSkipChatBoostSourcePremium
fn clone(&self) -> NoSkipChatBoostSourcePremium
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 NoSkipChatBoostSourcePremium
impl Debug for NoSkipChatBoostSourcePremium
Source§impl Default for NoSkipChatBoostSourcePremium
impl Default for NoSkipChatBoostSourcePremium
Source§fn default() -> NoSkipChatBoostSourcePremium
fn default() -> NoSkipChatBoostSourcePremium
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NoSkipChatBoostSourcePremium
impl<'de> Deserialize<'de> for NoSkipChatBoostSourcePremium
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<NoSkipChatBoostSourcePremium> for ChatBoostSourcePremium
impl From<NoSkipChatBoostSourcePremium> for ChatBoostSourcePremium
Source§fn from(t: NoSkipChatBoostSourcePremium) -> Self
fn from(t: NoSkipChatBoostSourcePremium) -> Self
Converts to this type from the input type.
Source§impl Hash for NoSkipChatBoostSourcePremium
impl Hash for NoSkipChatBoostSourcePremium
Source§impl Into<NoSkipChatBoostSourcePremium> for ChatBoostSourcePremium
impl Into<NoSkipChatBoostSourcePremium> for ChatBoostSourcePremium
Source§fn into(self) -> NoSkipChatBoostSourcePremium
fn into(self) -> NoSkipChatBoostSourcePremium
Converts this type into the (usually inferred) input type.
Source§impl Ord for NoSkipChatBoostSourcePremium
impl Ord for NoSkipChatBoostSourcePremium
Source§fn cmp(&self, other: &NoSkipChatBoostSourcePremium) -> Ordering
fn cmp(&self, other: &NoSkipChatBoostSourcePremium) -> 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 NoSkipChatBoostSourcePremium
impl PartialEq for NoSkipChatBoostSourcePremium
Source§fn eq(&self, other: &NoSkipChatBoostSourcePremium) -> bool
fn eq(&self, other: &NoSkipChatBoostSourcePremium) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for NoSkipChatBoostSourcePremium
impl PartialOrd for NoSkipChatBoostSourcePremium
impl Eq for NoSkipChatBoostSourcePremium
impl StructuralPartialEq for NoSkipChatBoostSourcePremium
Auto Trait Implementations§
impl Freeze for NoSkipChatBoostSourcePremium
impl RefUnwindSafe for NoSkipChatBoostSourcePremium
impl Send for NoSkipChatBoostSourcePremium
impl Sync for NoSkipChatBoostSourcePremium
impl Unpin for NoSkipChatBoostSourcePremium
impl UnwindSafe for NoSkipChatBoostSourcePremium
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.