pub struct BasicCredential { /* private fields */ }Available on 32-bit or 64-bit only.
Expand description
Basic Credential.
A BasicCredential as defined in the MLS protocol spec. It exposes only an
identity to represent the client.
Note that this credential does not contain any key material or any other information.
OpenMLS provides an implementation of signature keys for convenience in the
openmls_basic_credential crate.
Implementations§
Trait Implementations§
Source§impl Clone for BasicCredential
impl Clone for BasicCredential
Source§fn clone(&self) -> BasicCredential
fn clone(&self) -> BasicCredential
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 BasicCredential
impl Debug for BasicCredential
Source§impl<'de> Deserialize<'de> for BasicCredential
impl<'de> Deserialize<'de> for BasicCredential
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 From<BasicCredential> for Credential
impl From<BasicCredential> for Credential
Source§fn from(credential: BasicCredential) -> Self
fn from(credential: BasicCredential) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BasicCredential
impl PartialEq for BasicCredential
Source§impl Serialize for BasicCredential
impl Serialize for BasicCredential
Source§impl TryFrom<Credential> for BasicCredential
impl TryFrom<Credential> for BasicCredential
Source§type Error = BasicCredentialError
type Error = BasicCredentialError
The type returned in the event of a conversion error.
impl Eq for BasicCredential
impl StructuralPartialEq for BasicCredential
Auto Trait Implementations§
impl Freeze for BasicCredential
impl RefUnwindSafe for BasicCredential
impl Send for BasicCredential
impl Sync for BasicCredential
impl Unpin for BasicCredential
impl UnwindSafe for BasicCredential
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<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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