pub struct WelcomeMessage {
pub group_id: GroupId,
pub welcome_data: Vec<u8>,
pub inviter_id: String,
pub group_name: Option<String>,
pub timestamp_ms: u64,
}Expand description
A Welcome message for inviting users to a group.
A leaf node joins its pair from one of these, which is why it lives beside the envelope rather than with the group-management types in the MLS crate.
Fields§
§group_id: GroupIdThe group ID the user is being invited to.
welcome_data: Vec<u8>Serialized MLS Welcome message bytes.
inviter_id: StringThe inviter’s user ID.
group_name: Option<String>Optional group name for display.
timestamp_ms: u64Timestamp when the welcome was created.
Implementations§
Trait Implementations§
Source§impl Clone for WelcomeMessage
impl Clone for WelcomeMessage
Source§impl Debug for WelcomeMessage
impl Debug for WelcomeMessage
Source§impl<'de> Deserialize<'de> for WelcomeMessage
impl<'de> Deserialize<'de> for WelcomeMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WelcomeMessage
impl RefUnwindSafe for WelcomeMessage
impl Send for WelcomeMessage
impl Sync for WelcomeMessage
impl Unpin for WelcomeMessage
impl UnsafeUnpin for WelcomeMessage
impl UnwindSafe for WelcomeMessage
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