struct GroupChangesInfo {
better_msg: Option<String>,
added_removed_id: Option<ContactId>,
silent: bool,
extra_msgs: Vec<(String, SystemMessage, Option<ContactId>)>,
}
Expand description
The return type of apply_group_changes. Contains information on which system messages should be shown in the chat.
Fields§
§better_msg: Option<String>
Optional: A better message that should replace the original system message. If this is an empty string, the original system message should be trashed.
added_removed_id: Option<ContactId>
Added/removed contact better_msg
refers to.
silent: bool
If true, the user should not be notified about the group change.
extra_msgs: Vec<(String, SystemMessage, Option<ContactId>)>
A list of additional group changes messages that should be shown in the chat.
Trait Implementations§
Source§impl Default for GroupChangesInfo
impl Default for GroupChangesInfo
Source§fn default() -> GroupChangesInfo
fn default() -> GroupChangesInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GroupChangesInfo
impl RefUnwindSafe for GroupChangesInfo
impl Send for GroupChangesInfo
impl Sync for GroupChangesInfo
impl Unpin for GroupChangesInfo
impl UnwindSafe for GroupChangesInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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