pub struct ApiUpdateProfile {
pub user_id: i64,
pub profile: Profile,
}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).
Update user profile.
Network usage: background.
Syntax:
/_profile <userId> <json(profile)>Fields§
§user_id: i64§profile: ProfileTrait Implementations§
Source§impl Clone for ApiUpdateProfile
impl Clone for ApiUpdateProfile
Source§fn clone(&self) -> ApiUpdateProfile
fn clone(&self) -> ApiUpdateProfile
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 ApiUpdateProfile
impl CommandSyntax for ApiUpdateProfile
Source§impl Debug for ApiUpdateProfile
impl Debug for ApiUpdateProfile
Source§impl PartialEq for ApiUpdateProfile
impl PartialEq for ApiUpdateProfile
impl StructuralPartialEq for ApiUpdateProfile
Auto Trait Implementations§
impl Freeze for ApiUpdateProfile
impl RefUnwindSafe for ApiUpdateProfile
impl Send for ApiUpdateProfile
impl Sync for ApiUpdateProfile
impl Unpin for ApiUpdateProfile
impl UnwindSafe for ApiUpdateProfile
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