pub struct ApiSetContactPrefs {
pub contact_id: i64,
pub preferences: Preferences,
}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).
Configure chat preference overrides for the contact.
Network usage: background.
Syntax:
/_set prefs @<contactId> <json(preferences)>Fields§
§contact_id: i64§preferences: PreferencesImplementations§
Source§impl ApiSetContactPrefs
impl ApiSetContactPrefs
Sourcepub fn builder() -> ApiSetContactPrefsBuilder
pub fn builder() -> ApiSetContactPrefsBuilder
Create an instance of ApiSetContactPrefs using the builder syntax
Trait Implementations§
Source§impl Clone for ApiSetContactPrefs
impl Clone for ApiSetContactPrefs
Source§fn clone(&self) -> ApiSetContactPrefs
fn clone(&self) -> ApiSetContactPrefs
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 ApiSetContactPrefs
impl CommandSyntax for ApiSetContactPrefs
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 ApiSetContactPrefs
impl Debug for ApiSetContactPrefs
Source§impl PartialEq for ApiSetContactPrefs
impl PartialEq for ApiSetContactPrefs
Source§fn eq(&self, other: &ApiSetContactPrefs) -> bool
fn eq(&self, other: &ApiSetContactPrefs) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApiSetContactPrefs
Auto Trait Implementations§
impl Freeze for ApiSetContactPrefs
impl RefUnwindSafe for ApiSetContactPrefs
impl Send for ApiSetContactPrefs
impl Sync for ApiSetContactPrefs
impl Unpin for ApiSetContactPrefs
impl UnsafeUnpin for ApiSetContactPrefs
impl UnwindSafe for ApiSetContactPrefs
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