pub struct NoSkipChatBackground {
pub tg_type: BackgroundType,
}Expand description
Companion type to ChatBackground that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§tg_type: BackgroundTypeType of the background
Implementations§
Source§impl NoSkipChatBackground
impl NoSkipChatBackground
pub fn skip(self) -> ChatBackground
Trait Implementations§
Source§impl Clone for NoSkipChatBackground
impl Clone for NoSkipChatBackground
Source§fn clone(&self) -> NoSkipChatBackground
fn clone(&self) -> NoSkipChatBackground
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 NoSkipChatBackground
impl Debug for NoSkipChatBackground
Source§impl Default for NoSkipChatBackground
impl Default for NoSkipChatBackground
Source§fn default() -> NoSkipChatBackground
fn default() -> NoSkipChatBackground
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NoSkipChatBackground
impl<'de> Deserialize<'de> for NoSkipChatBackground
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<NoSkipChatBackground> for ChatBackground
impl From<NoSkipChatBackground> for ChatBackground
Source§fn from(t: NoSkipChatBackground) -> Self
fn from(t: NoSkipChatBackground) -> Self
Converts to this type from the input type.
Source§impl Hash for NoSkipChatBackground
impl Hash for NoSkipChatBackground
Source§impl Into<NoSkipChatBackground> for ChatBackground
impl Into<NoSkipChatBackground> for ChatBackground
Source§fn into(self) -> NoSkipChatBackground
fn into(self) -> NoSkipChatBackground
Converts this type into the (usually inferred) input type.
Source§impl Ord for NoSkipChatBackground
impl Ord for NoSkipChatBackground
Source§fn cmp(&self, other: &NoSkipChatBackground) -> Ordering
fn cmp(&self, other: &NoSkipChatBackground) -> 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 NoSkipChatBackground
impl PartialEq for NoSkipChatBackground
Source§impl PartialOrd for NoSkipChatBackground
impl PartialOrd for NoSkipChatBackground
Source§impl Serialize for NoSkipChatBackground
impl Serialize for NoSkipChatBackground
impl Eq for NoSkipChatBackground
impl StructuralPartialEq for NoSkipChatBackground
Auto Trait Implementations§
impl Freeze for NoSkipChatBackground
impl RefUnwindSafe for NoSkipChatBackground
impl Send for NoSkipChatBackground
impl Sync for NoSkipChatBackground
impl Unpin for NoSkipChatBackground
impl UnsafeUnpin for NoSkipChatBackground
impl UnwindSafe for NoSkipChatBackground
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.