pub struct ApiSetAddressSettings {
pub user_id: i64,
pub settings: AddressSettings,
}Expand description
§Address commands
Bots can use these commands to automatically check and create address when initialized
Set bot address settings.
Network usage: interactive.
Syntax:
/_address_settings <userId> <json(settings)>Fields§
§user_id: i64§settings: AddressSettingsImplementations§
Source§impl ApiSetAddressSettings
impl ApiSetAddressSettings
Sourcepub fn builder() -> ApiSetAddressSettingsBuilder
pub fn builder() -> ApiSetAddressSettingsBuilder
Create an instance of ApiSetAddressSettings using the builder syntax
Trait Implementations§
Source§impl Clone for ApiSetAddressSettings
impl Clone for ApiSetAddressSettings
Source§fn clone(&self) -> ApiSetAddressSettings
fn clone(&self) -> ApiSetAddressSettings
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 ApiSetAddressSettings
impl CommandSyntax for ApiSetAddressSettings
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 ApiSetAddressSettings
impl Debug for ApiSetAddressSettings
Source§impl PartialEq for ApiSetAddressSettings
impl PartialEq for ApiSetAddressSettings
Source§fn eq(&self, other: &ApiSetAddressSettings) -> bool
fn eq(&self, other: &ApiSetAddressSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApiSetAddressSettings
Auto Trait Implementations§
impl Freeze for ApiSetAddressSettings
impl RefUnwindSafe for ApiSetAddressSettings
impl Send for ApiSetAddressSettings
impl Sync for ApiSetAddressSettings
impl Unpin for ApiSetAddressSettings
impl UnsafeUnpin for ApiSetAddressSettings
impl UnwindSafe for ApiSetAddressSettings
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