Trait mls_rs::identity::MlsCredential
source · pub trait MlsCredential: Sized {
type Error;
// Required methods
fn credential_type() -> CredentialType;
fn into_credential(self) -> Result<Credential, Self::Error>;
}
Expand description
Trait that provides a conversion between an underlying credential type and
the Credential
enum.
Required Associated Types§
Required Methods§
sourcefn credential_type() -> CredentialType
fn credential_type() -> CredentialType
Credential type represented by this type.
sourcefn into_credential(self) -> Result<Credential, Self::Error>
fn into_credential(self) -> Result<Credential, Self::Error>
Function to convert this type into a Credential
enum.
Object Safety§
This trait is not object safe.