pub struct DefaultUser {
pub display_name: String,
pub is_bot: bool,
}Expand description
The SimpleX user profile used to initialise the chat instance.
§Security
The display_name field is injected into a SimpleX CLI command of the form /create {kind} '{display_name}'. It is intended to be a short, fixed, ASCII identifier chosen by the
application author, do not supply a user-input here to avoid command injections like:
“User’Name”(creates a user named “User” with bio=“Name”)
Fields§
§display_name: String§is_bot: boolImplementations§
Trait Implementations§
Source§impl Clone for DefaultUser
impl Clone for DefaultUser
Source§fn clone(&self) -> DefaultUser
fn clone(&self) -> DefaultUser
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 moreAuto Trait Implementations§
impl Freeze for DefaultUser
impl RefUnwindSafe for DefaultUser
impl Send for DefaultUser
impl Sync for DefaultUser
impl Unpin for DefaultUser
impl UnsafeUnpin for DefaultUser
impl UnwindSafe for DefaultUser
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