pub struct ApiSetUserAutoAcceptMemberContacts {
pub user_id: i64,
pub on_off: bool,
}Expand description
§Chat commands
Commands to list and delete conversations.
Set auto-accept member contacts.
Network usage: no.
Syntax:
/_set accept member contacts <userId> on|offFields§
§user_id: i64§on_off: boolImplementations§
Source§impl ApiSetUserAutoAcceptMemberContacts
impl ApiSetUserAutoAcceptMemberContacts
Sourcepub fn new(user_id: i64) -> ApiSetUserAutoAcceptMemberContacts
pub fn new(user_id: i64) -> ApiSetUserAutoAcceptMemberContacts
Creates a command with all Option parameters set to None and all bool parameters set to false
Trait Implementations§
Source§impl Clone for ApiSetUserAutoAcceptMemberContacts
impl Clone for ApiSetUserAutoAcceptMemberContacts
Source§fn clone(&self) -> ApiSetUserAutoAcceptMemberContacts
fn clone(&self) -> ApiSetUserAutoAcceptMemberContacts
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 ApiSetUserAutoAcceptMemberContacts
impl CommandSyntax for ApiSetUserAutoAcceptMemberContacts
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 PartialEq for ApiSetUserAutoAcceptMemberContacts
impl PartialEq for ApiSetUserAutoAcceptMemberContacts
Source§fn eq(&self, other: &ApiSetUserAutoAcceptMemberContacts) -> bool
fn eq(&self, other: &ApiSetUserAutoAcceptMemberContacts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApiSetUserAutoAcceptMemberContacts
Auto Trait Implementations§
impl Freeze for ApiSetUserAutoAcceptMemberContacts
impl RefUnwindSafe for ApiSetUserAutoAcceptMemberContacts
impl Send for ApiSetUserAutoAcceptMemberContacts
impl Sync for ApiSetUserAutoAcceptMemberContacts
impl Unpin for ApiSetUserAutoAcceptMemberContacts
impl UnsafeUnpin for ApiSetUserAutoAcceptMemberContacts
impl UnwindSafe for ApiSetUserAutoAcceptMemberContacts
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