pub struct NoSkipChatShared {
pub request_id: i64,
pub chat_id: i64,
pub title: Option<String>,
pub username: Option<String>,
pub photo: Option<Vec<PhotoSize>>,
}Expand description
Companion type to ChatShared that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§request_id: i64Identifier of the request
chat_id: i64Identifier of the shared chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot may not have access to the chat and could be unable to use this identifier, unless the chat is already known to the bot by some other means.
title: Option<String>§username: Option<String>§photo: Option<Vec<PhotoSize>>Implementations§
pub fn skip(self) -> ChatShared
Trait Implementations§
Source§fn clone(&self) -> NoSkipChatShared
fn clone(&self) -> NoSkipChatShared
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§fn default() -> NoSkipChatShared
fn default() -> NoSkipChatShared
Returns the “default value” for a type. Read more
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§fn from(t: NoSkipChatShared) -> Self
fn from(t: NoSkipChatShared) -> Self
Converts to this type from the input type.
Source§fn into(self) -> NoSkipChatShared
fn into(self) -> NoSkipChatShared
Converts this type into the (usually inferred) input type.
Source§fn cmp(&self, other: &NoSkipChatShared) -> Ordering
fn cmp(&self, other: &NoSkipChatShared) -> 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
Auto Trait Implementations§
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.