pub struct BusinessConnection {
pub id: String,
pub user_id: i64,
pub user_chat_id: i64,
pub date: i32,
pub can_reply: bool,
pub is_enabled: bool,
}
Expand description
Describes a connection of the bot with a business account
Fields§
§id: String
Unique identifier of the connection
user_id: i64
Identifier of the business user that created the connection
user_chat_id: i64
Chat identifier of the private chat with the user
date: i32
Point in time (Unix timestamp) when the connection was established
can_reply: bool
True, if the bot can send messages to the connected user; false otherwise
is_enabled: bool
True, if the connection is enabled; false otherwise
Trait Implementations§
Source§impl Clone for BusinessConnection
impl Clone for BusinessConnection
Source§fn clone(&self) -> BusinessConnection
fn clone(&self) -> BusinessConnection
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 BusinessConnection
impl Debug for BusinessConnection
Source§impl Default for BusinessConnection
impl Default for BusinessConnection
Source§fn default() -> BusinessConnection
fn default() -> BusinessConnection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BusinessConnection
impl<'de> Deserialize<'de> for BusinessConnection
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 PartialEq for BusinessConnection
impl PartialEq for BusinessConnection
Source§impl Serialize for BusinessConnection
impl Serialize for BusinessConnection
impl StructuralPartialEq for BusinessConnection
Auto Trait Implementations§
impl Freeze for BusinessConnection
impl RefUnwindSafe for BusinessConnection
impl Send for BusinessConnection
impl Sync for BusinessConnection
impl Unpin for BusinessConnection
impl UnwindSafe for BusinessConnection
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