pub struct BusinessConnection {
pub id: String,
pub user: User,
pub user_chat_id: i64,
pub date: i64,
pub can_reply: bool,
pub is_enabled: bool,
}Expand description
Describes the connection of the bot with a business account. https://core.telegram.org/bots/api#businessconnection
Fields§
§id: StringUnique identifier of the business connection
user: UserBusiness account user that created the business connection
user_chat_id: i64Identifier 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: i64Date the connection was established in Unix time
can_reply: boolTrue, if the bot can act on behalf of the business account in chats that were active in the last 24 hours
is_enabled: boolTrue, if the connection is active
Implementations§
Trait Implementations§
Source§impl Clone for BusinessConnection
impl Clone for BusinessConnection
Source§impl Debug for BusinessConnection
impl Debug for BusinessConnection
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
Auto Trait Implementations§
impl Freeze for BusinessConnection
impl RefUnwindSafe for BusinessConnection
impl Send for BusinessConnection
impl Sync for BusinessConnection
impl Unpin for BusinessConnection
impl UnsafeUnpin 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