Struct mls_rs::extension::built_in::ExternalPubExt
source · pub struct ExternalPubExt {
pub external_pub: HpkePublicKey,
}
Expand description
External public key used for External Commits.
This proposal type is optionally provided as part of a Group Info.
Fields§
§external_pub: HpkePublicKey
Public key to be used for an external commit.
Trait Implementations§
source§impl Clone for ExternalPubExt
impl Clone for ExternalPubExt
source§fn clone(&self) -> ExternalPubExt
fn clone(&self) -> ExternalPubExt
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 ExternalPubExt
impl Debug for ExternalPubExt
source§impl MlsCodecExtension for ExternalPubExt
impl MlsCodecExtension for ExternalPubExt
fn extension_type() -> ExtensionType
source§impl MlsDecode for ExternalPubExt
impl MlsDecode for ExternalPubExt
source§impl MlsEncode for ExternalPubExt
impl MlsEncode for ExternalPubExt
source§impl MlsSize for ExternalPubExt
impl MlsSize for ExternalPubExt
fn mls_encoded_len(&self) -> usize
source§impl PartialEq for ExternalPubExt
impl PartialEq for ExternalPubExt
source§fn eq(&self, other: &ExternalPubExt) -> bool
fn eq(&self, other: &ExternalPubExt) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ExternalPubExt
impl StructuralEq for ExternalPubExt
impl StructuralPartialEq for ExternalPubExt
Auto Trait Implementations§
impl RefUnwindSafe for ExternalPubExt
impl Send for ExternalPubExt
impl Sync for ExternalPubExt
impl Unpin for ExternalPubExt
impl UnwindSafe for ExternalPubExt
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<T> MlsExtension for Twhere
T: MlsCodecExtension,
impl<T> MlsExtension for Twhere
T: MlsCodecExtension,
§type SerializationError = Error
type SerializationError = Error
Error type of the underlying serializer that can convert this type into a
Vec<u8>
.§type DeserializationError = Error
type DeserializationError = Error
Error type of the underlying deserializer that can convert a
Vec<u8>
into this type.source§fn extension_type() -> ExtensionType
fn extension_type() -> ExtensionType
Extension type value that this type represents.
source§fn to_bytes(&self) -> Result<Vec<u8>, <T as MlsExtension>::SerializationError>
fn to_bytes(&self) -> Result<Vec<u8>, <T as MlsExtension>::SerializationError>
Convert this type to opaque bytes.
source§fn from_bytes(
data: &[u8]
) -> Result<T, <T as MlsExtension>::DeserializationError>
fn from_bytes( data: &[u8] ) -> Result<T, <T as MlsExtension>::DeserializationError>
Create this type from opaque bytes.
source§fn into_extension(self) -> Result<Extension, ExtensionError>
fn into_extension(self) -> Result<Extension, ExtensionError>
Convert this type into an Extension.
source§fn from_extension(ext: &Extension) -> Result<Self, ExtensionError>
fn from_extension(ext: &Extension) -> Result<Self, ExtensionError>
Create this type from an Extension.