pub struct ApiDeleteUser {
pub user_id: i64,
pub del_smp_queues: bool,
pub view_pwd: Option<String>,
}Expand description
§User profile commands
Most bots don’t need to use these commands, as bot profile can be configured manually via CLI or desktop client. These commands can be used by bots that need to manage multiple user profiles (e.g., the profiles of support agents).
Delete user profile.
Network usage: background.
Syntax:
/_delete user <userId> del_smp=on|off[ <json(viewPwd)>]Fields§
§user_id: i64§del_smp_queues: bool§view_pwd: Option<String>Implementations§
Source§impl ApiDeleteUser
impl ApiDeleteUser
Sourcepub fn builder() -> ApiDeleteUserBuilder
pub fn builder() -> ApiDeleteUserBuilder
Create an instance of ApiDeleteUser using the builder syntax
Source§impl ApiDeleteUser
impl ApiDeleteUser
Sourcepub fn new(user_id: i64) -> ApiDeleteUser
pub fn new(user_id: i64) -> ApiDeleteUser
Creates a command with all Option parameters set to None and all bool parameters set to false
Trait Implementations§
Source§impl Clone for ApiDeleteUser
impl Clone for ApiDeleteUser
Source§fn clone(&self) -> ApiDeleteUser
fn clone(&self) -> ApiDeleteUser
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 ApiDeleteUser
impl CommandSyntax for ApiDeleteUser
const COMMAND_BUF_SIZE: usize = 1024
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 ApiDeleteUser
impl Debug for ApiDeleteUser
Source§impl PartialEq for ApiDeleteUser
impl PartialEq for ApiDeleteUser
Source§fn eq(&self, other: &ApiDeleteUser) -> bool
fn eq(&self, other: &ApiDeleteUser) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApiDeleteUser
Auto Trait Implementations§
impl Freeze for ApiDeleteUser
impl RefUnwindSafe for ApiDeleteUser
impl Send for ApiDeleteUser
impl Sync for ApiDeleteUser
impl Unpin for ApiDeleteUser
impl UnsafeUnpin for ApiDeleteUser
impl UnwindSafe for ApiDeleteUser
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