pub struct CredentialType(/* private fields */);
Implementations§
Source§impl CredentialType
impl CredentialType
pub const SPEC_RESERVED: u16 = 0u16
pub const BASIC: u16 = 1u16
pub const X509: u16 = 2u16
pub const MULTI_CREDENTIAL: u16 = 3u16
Available on crate feature
draft-ietf-mls-extensions
only.pub const WEAK_MULTI_CREDENTIAL: u16 = 4u16
Available on crate feature
draft-ietf-mls-extensions
only.pub const SD_CWT_CREDENTIAL: u16 = 5u16
Available on crate feature
draft-mahy-mls-sd-cwt-credential
only.pub const SD_JWT_CREDENTIAL: u16 = 6u16
Available on crate feature
draft-mahy-mls-sd-cwt-credential
only.Source§impl CredentialType
impl CredentialType
pub fn all_without_spec_default() -> Vec<Self>
pub const fn new_unchecked(value: u16) -> Self
pub fn new_private_use(value: u16) -> MlsSpecResult<Self>
pub const fn is_spec_default(&self) -> bool
pub fn is_grease_value(&self) -> bool
Trait Implementations§
Source§impl Clone for CredentialType
impl Clone for CredentialType
Source§fn clone(&self) -> CredentialType
fn clone(&self) -> CredentialType
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 CredentialType
impl Debug for CredentialType
Source§impl Default for CredentialType
impl Default for CredentialType
Source§impl Deref for CredentialType
impl Deref for CredentialType
Source§impl<'de> Deserialize<'de> for CredentialType
impl<'de> Deserialize<'de> for CredentialType
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 CredentialType
impl Deserialize for CredentialType
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 Display for CredentialType
impl Display for CredentialType
Source§impl From<&Credential> for CredentialType
impl From<&Credential> for CredentialType
Source§fn from(value: &Credential) -> Self
fn from(value: &Credential) -> Self
Converts to this type from the input type.
Source§impl Hash for CredentialType
impl Hash for CredentialType
Source§impl Ord for CredentialType
impl Ord for CredentialType
Source§fn cmp(&self, other: &CredentialType) -> Ordering
fn cmp(&self, other: &CredentialType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CredentialType
impl PartialEq for CredentialType
Source§impl PartialOrd for CredentialType
impl PartialOrd for CredentialType
Source§impl Serialize for &CredentialType
impl Serialize for &CredentialType
Source§impl Serialize for CredentialType
impl Serialize for CredentialType
Source§impl Serialize for CredentialType
impl Serialize for CredentialType
Source§impl Size for &CredentialType
impl Size for &CredentialType
fn tls_serialized_len(&self) -> usize
Source§impl Size for CredentialType
impl Size for CredentialType
fn tls_serialized_len(&self) -> usize
Source§impl TryFrom<u16> for CredentialType
impl TryFrom<u16> for CredentialType
impl Copy for CredentialType
impl Eq for CredentialType
impl StructuralPartialEq for CredentialType
Auto Trait Implementations§
impl Freeze for CredentialType
impl RefUnwindSafe for CredentialType
impl Send for CredentialType
impl Sync for CredentialType
impl Unpin for CredentialType
impl UnwindSafe for CredentialType
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