pub struct ApiNewPublicGroup {
pub user_id: i64,
pub incognito: bool,
pub relay_ids: Vec<i64>,
pub group_profile: GroupProfile,
}Expand description
§Group commands
Commands to manage and moderate groups. These commands can be used with business chats as well - they are groups. E.g., a common scenario would be to add human agents to business chat with the customer who connected via business address.
Create public group.
Network usage: interactive.
Syntax:
/_public group <userId>[ incognito=on] <relayIds[0]>[,<relayIds[1]>...] <json(groupProfile)>Fields§
§user_id: i64§incognito: bool§relay_ids: Vec<i64>§group_profile: GroupProfileImplementations§
Source§impl ApiNewPublicGroup
impl ApiNewPublicGroup
Sourcepub fn builder() -> ApiNewPublicGroupBuilder
pub fn builder() -> ApiNewPublicGroupBuilder
Create an instance of ApiNewPublicGroup using the builder syntax
Source§impl ApiNewPublicGroup
impl ApiNewPublicGroup
Sourcepub fn new(
user_id: i64,
relay_ids: Vec<i64>,
group_profile: GroupProfile,
) -> ApiNewPublicGroup
pub fn new( user_id: i64, relay_ids: Vec<i64>, group_profile: GroupProfile, ) -> ApiNewPublicGroup
Creates a command with all Option parameters set to None and all bool parameters set to false
Trait Implementations§
Source§impl Clone for ApiNewPublicGroup
impl Clone for ApiNewPublicGroup
Source§fn clone(&self) -> ApiNewPublicGroup
fn clone(&self) -> ApiNewPublicGroup
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 ApiNewPublicGroup
impl CommandSyntax for ApiNewPublicGroup
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 ApiNewPublicGroup
impl Debug for ApiNewPublicGroup
Source§impl PartialEq for ApiNewPublicGroup
impl PartialEq for ApiNewPublicGroup
Source§fn eq(&self, other: &ApiNewPublicGroup) -> bool
fn eq(&self, other: &ApiNewPublicGroup) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApiNewPublicGroup
Auto Trait Implementations§
impl Freeze for ApiNewPublicGroup
impl RefUnwindSafe for ApiNewPublicGroup
impl Send for ApiNewPublicGroup
impl Sync for ApiNewPublicGroup
impl Unpin for ApiNewPublicGroup
impl UnsafeUnpin for ApiNewPublicGroup
impl UnwindSafe for ApiNewPublicGroup
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