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>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 · 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
Source§impl Debug for ApiSetActiveUser
impl Debug for ApiSetActiveUser
Source§impl PartialEq for ApiSetActiveUser
impl PartialEq for ApiSetActiveUser
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 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