pub struct ApiSetContactCustomData {
pub contact_id: i64,
pub custom_data: Option<Value>,
}Expand description
§Chat commands
Commands to list and delete conversations.
Set contact custom data.
Network usage: no.
Syntax:
/_set custom @<contactId>[ <json(customData)>]Fields§
§contact_id: i64§custom_data: Option<Value>Implementations§
Source§impl ApiSetContactCustomData
impl ApiSetContactCustomData
Sourcepub fn builder() -> ApiSetContactCustomDataBuilder
pub fn builder() -> ApiSetContactCustomDataBuilder
Create an instance of ApiSetContactCustomData using the builder syntax
Source§impl ApiSetContactCustomData
impl ApiSetContactCustomData
Sourcepub fn new(contact_id: i64) -> ApiSetContactCustomData
pub fn new(contact_id: i64) -> ApiSetContactCustomData
Creates a command with all Option parameters set to None and all bool parameters set to false
Trait Implementations§
Source§impl Clone for ApiSetContactCustomData
impl Clone for ApiSetContactCustomData
Source§fn clone(&self) -> ApiSetContactCustomData
fn clone(&self) -> ApiSetContactCustomData
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 ApiSetContactCustomData
impl CommandSyntax for ApiSetContactCustomData
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 ApiSetContactCustomData
impl Debug for ApiSetContactCustomData
Source§impl PartialEq for ApiSetContactCustomData
impl PartialEq for ApiSetContactCustomData
Source§fn eq(&self, other: &ApiSetContactCustomData) -> bool
fn eq(&self, other: &ApiSetContactCustomData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApiSetContactCustomData
Auto Trait Implementations§
impl Freeze for ApiSetContactCustomData
impl RefUnwindSafe for ApiSetContactCustomData
impl Send for ApiSetContactCustomData
impl Sync for ApiSetContactCustomData
impl Unpin for ApiSetContactCustomData
impl UnsafeUnpin for ApiSetContactCustomData
impl UnwindSafe for ApiSetContactCustomData
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