pub struct NoSkipBusinessConnection {
pub id: String,
pub user: BoxWrapper<Unbox<User>>,
pub user_chat_id: i64,
pub date: i64,
pub rights: Option<BoxWrapper<Unbox<BusinessBotRights>>>,
pub is_enabled: bool,
}
Expand description
Companion type to BusinessConnection that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§id: String
Unique identifier of the business connection
user: BoxWrapper<Unbox<User>>
Business account user that created the business connection
user_chat_id: i64
Identifier of a private chat with the user who created the business connection. 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.
date: i64
Date the connection was established in Unix time
rights: Option<BoxWrapper<Unbox<BusinessBotRights>>>
§is_enabled: bool
True, if the connection is active
Implementations§
Source§impl NoSkipBusinessConnection
impl NoSkipBusinessConnection
pub fn skip(self) -> BusinessConnection
Trait Implementations§
Source§impl Clone for NoSkipBusinessConnection
impl Clone for NoSkipBusinessConnection
Source§fn clone(&self) -> NoSkipBusinessConnection
fn clone(&self) -> NoSkipBusinessConnection
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 NoSkipBusinessConnection
impl Debug for NoSkipBusinessConnection
Source§impl Default for NoSkipBusinessConnection
impl Default for NoSkipBusinessConnection
Source§fn default() -> NoSkipBusinessConnection
fn default() -> NoSkipBusinessConnection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NoSkipBusinessConnection
impl<'de> Deserialize<'de> for NoSkipBusinessConnection
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<NoSkipBusinessConnection> for BusinessConnection
impl From<NoSkipBusinessConnection> for BusinessConnection
Source§fn from(t: NoSkipBusinessConnection) -> Self
fn from(t: NoSkipBusinessConnection) -> Self
Converts to this type from the input type.
Source§impl Hash for NoSkipBusinessConnection
impl Hash for NoSkipBusinessConnection
Source§impl Into<NoSkipBusinessConnection> for BusinessConnection
impl Into<NoSkipBusinessConnection> for BusinessConnection
Source§fn into(self) -> NoSkipBusinessConnection
fn into(self) -> NoSkipBusinessConnection
Converts this type into the (usually inferred) input type.
Source§impl Ord for NoSkipBusinessConnection
impl Ord for NoSkipBusinessConnection
Source§fn cmp(&self, other: &NoSkipBusinessConnection) -> Ordering
fn cmp(&self, other: &NoSkipBusinessConnection) -> 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 NoSkipBusinessConnection
impl PartialEq for NoSkipBusinessConnection
Source§impl PartialOrd for NoSkipBusinessConnection
impl PartialOrd for NoSkipBusinessConnection
Source§impl Serialize for NoSkipBusinessConnection
impl Serialize for NoSkipBusinessConnection
impl Eq for NoSkipBusinessConnection
impl StructuralPartialEq for NoSkipBusinessConnection
Auto Trait Implementations§
impl Freeze for NoSkipBusinessConnection
impl RefUnwindSafe for NoSkipBusinessConnection
impl Send for NoSkipBusinessConnection
impl Sync for NoSkipBusinessConnection
impl Unpin for NoSkipBusinessConnection
impl UnwindSafe for NoSkipBusinessConnection
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.