pub fn new_proposal(
        framing_parameters: FramingParameters,
        sender_index: LeafIndex,
        proposal: Proposal,
        credential_bundle: &CredentialBundle,
        context: &GroupContext,
        membership_key: &MembershipKey,
        backend: &impl OpenMlsCryptoProvider,
    ) -> Result<Self, MlsPlaintextError> {
        Self::new_with_membership_tag(
            framing_parameters,
            sender_index,
            Payload {
                payload: MlsPlaintextContentType::Proposal(proposal),
                content_type: ContentType::Proposal,
            },
            credential_bundle,
            context,
            membership_key,
            backend,
        )
    }
/// This constructor builds an `MlsPlaintext` containing a Proposal.
/// The sender type is always `SenderType::Member`.
This constructor builds an `MlsPlaintext` containing a Proposal.
The sender type is always `SenderType::Member`.
This constructor builds an ` MlsPlaintext ` containing a Proposal . The sender type is always ` SenderType :: Member ` .
pub fn new_proposal(
        framing_parameters: FramingParameters,
        sender_index: LeafIndex,
        proposal: Proposal,
        credential_bundle: &CredentialBundle,
        context: &GroupContext,
        membership_key: &MembershipKey,
        backend: &impl OpenMlsCryptoProvider,
    ) -> Result<Self, MlsPlaintextError> {
        Self::new_with_membership_tag(
            framing_parameters,
            sender_index,
            Payload {
                payload: MlsPlaintextContentType::Proposal(proposal),
                content_type: ContentType::Proposal,
            },
            credential_bundle,
            context,
            membership_key,
            backend,
        )
    }
pub fn new_proposal ( framing_parameters : FramingParameters , sender_index : LeafIndex , proposal : Proposal , credential_bundle : & CredentialBundle , context : & GroupContext , membership_key : & MembershipKey , backend : & impl OpenMlsCryptoProvider , ) -> Result < Self , MlsPlaintextError > { Self :: new_with_membership_tag ( framing_parameters , sender_index , Payload { payload : MlsPlaintextContentType :: Proposal ( proposal ) , content_type : ContentType :: Proposal , } , credential_bundle , context , membership_key , backend , ) }
This constructor builds an `MlsPlaintext` containing a Proposal.
This constructor builds an ` MlsPlaintext ` containing a Proposal .
framing_parameters
FramingParameters
sender_index
LeafIndex
proposal
Proposal
credential_bundle
&CredentialBundle
context
&GroupContext
membership_key
&MembershipKey
backend
&impl OpenMlsCryptoProvider
framing_parameters
FramingParameters
sender_index
LeafIndex
proposal
Proposal
credential_bundle
&CredentialBundle
context
&GroupContext
membership_key
&MembershipKey
backend
&impl OpenMlsCryptoProvider