pub struct ApiAddContact {
pub user_id: i64,
pub incognito: bool,
}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.
Create 1-time invitation link.
Network usage: interactive.
Syntax:
/_connect <userId>[ incognito=on]Fields§
§user_id: i64§incognito: boolImplementations§
Source§impl ApiAddContact
impl ApiAddContact
Sourcepub fn builder() -> ApiAddContactBuilder
pub fn builder() -> ApiAddContactBuilder
Create an instance of ApiAddContact using the builder syntax
Source§impl ApiAddContact
impl ApiAddContact
Sourcepub fn new(user_id: i64) -> ApiAddContact
pub fn new(user_id: i64) -> ApiAddContact
Creates a command with all Option parameters set to None and all bool parameters set to false
Trait Implementations§
Source§impl Clone for ApiAddContact
impl Clone for ApiAddContact
Source§fn clone(&self) -> ApiAddContact
fn clone(&self) -> ApiAddContact
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ApiAddContact
impl CommandSyntax for ApiAddContact
const COMMAND_BUF_SIZE: usize = 64
fn append_command_syntax(&self, buf: &mut String)
Source§fn to_command_string(&self) -> String
fn to_command_string(&self) -> String
Generate a SimpleX command string from self
Source§impl Debug for ApiAddContact
impl Debug for ApiAddContact
Source§impl PartialEq for ApiAddContact
impl PartialEq for ApiAddContact
Source§fn eq(&self, other: &ApiAddContact) -> bool
fn eq(&self, other: &ApiAddContact) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApiAddContact
Auto Trait Implementations§
impl Freeze for ApiAddContact
impl RefUnwindSafe for ApiAddContact
impl Send for ApiAddContact
impl Sync for ApiAddContact
impl Unpin for ApiAddContact
impl UnsafeUnpin for ApiAddContact
impl UnwindSafe for ApiAddContact
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more