pub struct X509Identity {
pub handle: String,
pub display_name: String,
pub domain: String,
pub certificate: String,
pub serial_number: String,
pub not_before: u64,
pub not_after: u64,
}Expand description
Represents the parts of WireIdentity that are specific to a X509 certificate (and not a Basic one).
We don’t use an enum here since the sole purpose of this is to be exposed through the FFI (and union types are impossible to carry over the FFI boundary)
Fields§
§handle: Stringuser handle e.g. john_wire
display_name: StringName as displayed in the messaging application e.g. John Fitzgerald Kennedy
domain: StringDNS domain for which this identity proof was generated e.g. whitehouse.gov
certificate: StringX509 certificate identifying this client in the MLS group ; PEM encoded
serial_number: StringX509 certificate serial number
not_before: u64X509 certificate not before as Unix timestamp
not_after: u64X509 certificate not after as Unix timestamp
Trait Implementations§
Source§impl Clone for X509Identity
impl Clone for X509Identity
Source§fn clone(&self) -> X509Identity
fn clone(&self) -> X509Identity
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 X509Identity
impl Debug for X509Identity
Source§impl Ord for X509Identity
impl Ord for X509Identity
Source§fn cmp(&self, other: &X509Identity) -> Ordering
fn cmp(&self, other: &X509Identity) -> 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 X509Identity
impl PartialEq for X509Identity
Source§impl PartialOrd for X509Identity
impl PartialOrd for X509Identity
impl Eq for X509Identity
impl StructuralPartialEq for X509Identity
Auto Trait Implementations§
impl Freeze for X509Identity
impl RefUnwindSafe for X509Identity
impl Send for X509Identity
impl Sync for X509Identity
impl Unpin for X509Identity
impl UnwindSafe for X509Identity
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,
§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
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
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