pub struct ApiSetActiveUser {
pub user_id: i64,
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).
Set active user profile.
Network usage: no.
Syntax:
/_user <userId>[ <json(viewPwd)>]Fields§
§user_id: i64§view_pwd: Option<String>Implementations§
Source§impl ApiSetActiveUser
impl ApiSetActiveUser
Sourcepub fn builder() -> ApiSetActiveUserBuilder
pub fn builder() -> ApiSetActiveUserBuilder
Create an instance of ApiSetActiveUser using the builder syntax
Source§impl ApiSetActiveUser
impl ApiSetActiveUser
Sourcepub fn new(user_id: i64) -> ApiSetActiveUser
pub fn new(user_id: i64) -> ApiSetActiveUser
Creates a command with all Option parameters set to None and all bool parameters set to false
Trait Implementations§
Source§impl Clone for ApiSetActiveUser
impl Clone for ApiSetActiveUser
Source§fn clone(&self) -> ApiSetActiveUser
fn clone(&self) -> ApiSetActiveUser
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 ApiSetActiveUser
impl CommandSyntax for ApiSetActiveUser
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 ApiSetActiveUser
impl Debug for ApiSetActiveUser
Source§impl PartialEq for ApiSetActiveUser
impl PartialEq for ApiSetActiveUser
Source§fn eq(&self, other: &ApiSetActiveUser) -> bool
fn eq(&self, other: &ApiSetActiveUser) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApiSetActiveUser
Auto Trait Implementations§
impl Freeze for ApiSetActiveUser
impl RefUnwindSafe for ApiSetActiveUser
impl Send for ApiSetActiveUser
impl Sync for ApiSetActiveUser
impl Unpin for ApiSetActiveUser
impl UnsafeUnpin for ApiSetActiveUser
impl UnwindSafe for ApiSetActiveUser
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