Struct mls_rs::group::CommitMessageDescription
source · #[non_exhaustive]pub struct CommitMessageDescription {
pub is_external: bool,
pub committer: u32,
pub state_update: StateUpdate,
pub authenticated_data: Vec<u8>,
}
Expand description
Description of a processed MLS commit message.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.is_external: bool
True if this is the result of an external commit.
committer: u32
The index in the group state of the member who performed this commit.
state_update: StateUpdate
A full description of group state changes as a result of this commit.
authenticated_data: Vec<u8>
Plaintext authenticated data in the received MLS packet.
Trait Implementations§
source§impl Clone for CommitMessageDescription
impl Clone for CommitMessageDescription
source§fn clone(&self) -> CommitMessageDescription
fn clone(&self) -> CommitMessageDescription
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CommitMessageDescription
impl Debug for CommitMessageDescription
source§impl From<CommitMessageDescription> for ExternalReceivedMessage
Available on crate feature external_client
only.
impl From<CommitMessageDescription> for ExternalReceivedMessage
Available on crate feature
external_client
only.source§fn from(value: CommitMessageDescription) -> Self
fn from(value: CommitMessageDescription) -> Self
Converts to this type from the input type.
source§impl From<CommitMessageDescription> for ReceivedMessage
impl From<CommitMessageDescription> for ReceivedMessage
source§fn from(value: CommitMessageDescription) -> Self
fn from(value: CommitMessageDescription) -> Self
Converts to this type from the input type.
source§impl PartialEq for CommitMessageDescription
impl PartialEq for CommitMessageDescription
source§fn eq(&self, other: &CommitMessageDescription) -> bool
fn eq(&self, other: &CommitMessageDescription) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CommitMessageDescription
Auto Trait Implementations§
impl RefUnwindSafe for CommitMessageDescription
impl Send for CommitMessageDescription
impl Sync for CommitMessageDescription
impl Unpin for CommitMessageDescription
impl UnwindSafe for CommitMessageDescription
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