pub struct ApiConnect {
pub user_id: i64,
pub incognito: bool,
pub prepared_link: Option<CreatedConnLink>,
}Expand description
§Connection commands
These commands may be used to create connections. Most bots do not need to use them - bot users will connect via bot address with auto-accept enabled.
Connect via prepared SimpleX link. The link can be 1-time invitation link, contact address or group link
Network usage: interactive.
Syntax:
/_connect <userId>[ <str(preparedLink_)>]Fields§
§user_id: i64§incognito: bool§prepared_link: Option<CreatedConnLink>Trait Implementations§
Source§impl Clone for ApiConnect
impl Clone for ApiConnect
Source§fn clone(&self) -> ApiConnect
fn clone(&self) -> ApiConnect
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 CommandSyntax for ApiConnect
impl CommandSyntax for ApiConnect
Source§impl Debug for ApiConnect
impl Debug for ApiConnect
Source§impl PartialEq for ApiConnect
impl PartialEq for ApiConnect
impl StructuralPartialEq for ApiConnect
Auto Trait Implementations§
impl Freeze for ApiConnect
impl RefUnwindSafe for ApiConnect
impl Send for ApiConnect
impl Sync for ApiConnect
impl Unpin for ApiConnect
impl UnwindSafe for ApiConnect
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