Struct core_crypto::prelude::WireIdentity
source · pub struct WireIdentity {
pub client_id: String,
pub thumbprint: String,
pub status: DeviceStatus,
pub credential_type: MlsCredentialType,
pub x509_identity: Option<X509Identity>,
}
Expand description
Represents the identity claims identifying a client Those claims are verifiable by any member in the group
Fields§
§client_id: String
Unique client identifier e.g. T4Coy4vdRzianwfOgXpn6A:6add501bacd1d90e@whitehouse.gov
thumbprint: String
MLS thumbprint
status: DeviceStatus
Status of the Credential at the moment T when this object is created
credential_type: MlsCredentialType
Indicates whether the credential is Basic or X509
x509_identity: Option<X509Identity>
In case ‘credential_type’ is MlsCredentialType::X509 this is populated
Trait Implementations§
source§impl Clone for WireIdentity
impl Clone for WireIdentity
source§fn clone(&self) -> WireIdentity
fn clone(&self) -> WireIdentity
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 WireIdentity
impl Debug for WireIdentity
source§impl Ord for WireIdentity
impl Ord for WireIdentity
source§fn cmp(&self, other: &WireIdentity) -> Ordering
fn cmp(&self, other: &WireIdentity) -> 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 WireIdentity
impl PartialEq for WireIdentity
source§impl PartialOrd for WireIdentity
impl PartialOrd for WireIdentity
source§impl<'a> TryFrom<(WireIdentity, &'a [u8])> for WireIdentity
impl<'a> TryFrom<(WireIdentity, &'a [u8])> for WireIdentity
source§type Error = CryptoError
type Error = CryptoError
The type returned in the event of a conversion error.
source§fn try_from((i, cert): (WireIdentity, &'a [u8])) -> CryptoResult<Self>
fn try_from((i, cert): (WireIdentity, &'a [u8])) -> CryptoResult<Self>
Performs the conversion.
impl Eq for WireIdentity
impl StructuralPartialEq for WireIdentity
Auto Trait Implementations§
impl Freeze for WireIdentity
impl RefUnwindSafe for WireIdentity
impl Send for WireIdentity
impl Sync for WireIdentity
impl Unpin for WireIdentity
impl UnwindSafe for WireIdentity
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
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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
§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
§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
Compare self to
key
and return true
if they are equal.§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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read moresource§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