Struct mls_rs::group::ProposalMessageDescription
source · #[non_exhaustive]pub struct ProposalMessageDescription {
pub sender: ProposalSender,
pub proposal: Proposal,
pub authenticated_data: Vec<u8>,
pub proposal_ref: ProposalRef,
}
Expand description
Description of a processed MLS proposal 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.sender: ProposalSender
Sender of the proposal.
proposal: Proposal
Proposal content.
authenticated_data: Vec<u8>
Plaintext authenticated data in the received MLS packet.
proposal_ref: ProposalRef
Proposal reference.
Implementations§
source§impl ProposalMessageDescription
impl ProposalMessageDescription
pub fn cached_proposal(self) -> CachedProposal
pub fn proposal_ref(&self) -> Vec<u8> ⓘ
Trait Implementations§
source§impl Clone for ProposalMessageDescription
impl Clone for ProposalMessageDescription
source§fn clone(&self) -> ProposalMessageDescription
fn clone(&self) -> ProposalMessageDescription
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 ProposalMessageDescription
impl Debug for ProposalMessageDescription
source§impl From<ProposalMessageDescription> for ExternalReceivedMessage
Available on crate feature external_client
only.
impl From<ProposalMessageDescription> for ExternalReceivedMessage
Available on crate feature
external_client
only.source§fn from(value: ProposalMessageDescription) -> Self
fn from(value: ProposalMessageDescription) -> Self
Converts to this type from the input type.
source§impl From<ProposalMessageDescription> for ReceivedMessage
impl From<ProposalMessageDescription> for ReceivedMessage
source§fn from(value: ProposalMessageDescription) -> Self
fn from(value: ProposalMessageDescription) -> Self
Converts to this type from the input type.
source§impl MlsSize for ProposalMessageDescription
impl MlsSize for ProposalMessageDescription
fn mls_encoded_len(&self) -> usize
source§impl PartialEq for ProposalMessageDescription
impl PartialEq for ProposalMessageDescription
source§fn eq(&self, other: &ProposalMessageDescription) -> bool
fn eq(&self, other: &ProposalMessageDescription) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProposalMessageDescription
Auto Trait Implementations§
impl Freeze for ProposalMessageDescription
impl RefUnwindSafe for ProposalMessageDescription
impl Send for ProposalMessageDescription
impl Sync for ProposalMessageDescription
impl Unpin for ProposalMessageDescription
impl UnwindSafe for ProposalMessageDescription
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)