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,
pub rights: Option<Value>,
}Expand description
A business connection was established or removed.
Fields§
§id: StringUnique identifier of the business connection.
user: UserThe business account user.
user_chat_id: i64Identifier of the private chat with the user.
date: i64Date the connection was established as a Unix timestamp.
can_reply: booltrue if the bot can act on behalf of the business account.
is_enabled: booltrue if the connection is active.
rights: Option<Value>Rights of the bot in the business account.
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<'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