#[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: ProposalSenderSender of the proposal.
proposal: ProposalProposal content.
authenticated_data: Vec<u8>Plaintext authenticated data in the received MLS packet.
proposal_ref: ProposalRefProposal 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
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more