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
impl Eq for ExternalPubExt
impl StructuralPartialEq for ExternalPubExt
Auto Trait Implementations§
impl Freeze for ExternalPubExt
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moresource§impl<T> MlsExtension for Twhere
T: MlsCodecExtension,
impl<T> MlsExtension for Twhere
T: MlsCodecExtension,
source§type SerializationError = Error
type SerializationError = Error
Error type of the underlying serializer that can convert this type into a
Vec<u8>
.source§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.