pub struct ComponentOperationLabel {
pub component_id: ComponentId,
pub context: Vec<u8>,
/* private fields */
}
Available on crate feature
draft-ietf-mls-extensions
only.Fields§
§component_id: ComponentId
§context: Vec<u8>
Implementations§
Source§impl ComponentOperationLabel
impl ComponentOperationLabel
Sourcepub fn new_with_context_for_hpke(
component_id: ComponentId,
context: Vec<u8>,
) -> Self
pub fn new_with_context_for_hpke( component_id: ComponentId, context: Vec<u8>, ) -> Self
This follows the spec for the following construct: https://www.ietf.org/archive/id/draft-ietf-mls-extensions-06.html#name-hybrid-public-key-encryptio
Sourcepub fn new_for_signature(
label: SignatureLabel,
component_id: ComponentId,
context: Vec<u8>,
) -> (Self, SignatureLabel)
pub fn new_for_signature( label: SignatureLabel, component_id: ComponentId, context: Vec<u8>, ) -> (Self, SignatureLabel)
This follows the spec for the following construct: https://www.ietf.org/archive/id/draft-ietf-mls-extensions-06.html#name-hybrid-public-key-encryptio
Trait Implementations§
Source§impl Clone for ComponentOperationLabel
impl Clone for ComponentOperationLabel
Source§fn clone(&self) -> ComponentOperationLabel
fn clone(&self) -> ComponentOperationLabel
Returns a duplicate 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 ComponentOperationLabel
impl Debug for ComponentOperationLabel
Source§impl<'de> Deserialize<'de> for ComponentOperationLabel
impl<'de> Deserialize<'de> for ComponentOperationLabel
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
Source§impl Deserialize for ComponentOperationLabel
impl Deserialize for ComponentOperationLabel
Source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
This function deserializes the
bytes
from the provided a std::io::Read
and returns the populated struct. Read moreSource§impl PartialEq for ComponentOperationLabel
impl PartialEq for ComponentOperationLabel
Source§impl Serialize for &ComponentOperationLabel
impl Serialize for &ComponentOperationLabel
Source§impl Serialize for ComponentOperationLabel
impl Serialize for ComponentOperationLabel
Source§impl Serialize for ComponentOperationLabel
impl Serialize for ComponentOperationLabel
Source§impl Size for &ComponentOperationLabel
impl Size for &ComponentOperationLabel
fn tls_serialized_len(&self) -> usize
Source§impl Size for ComponentOperationLabel
impl Size for ComponentOperationLabel
fn tls_serialized_len(&self) -> usize
impl Eq for ComponentOperationLabel
impl StructuralPartialEq for ComponentOperationLabel
Auto Trait Implementations§
impl Freeze for ComponentOperationLabel
impl RefUnwindSafe for ComponentOperationLabel
impl Send for ComponentOperationLabel
impl Sync for ComponentOperationLabel
impl Unpin for ComponentOperationLabel
impl UnwindSafe for ComponentOperationLabel
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