Struct
ThirdPartyCertificateInfo
pub struct ThirdPartyCertificateInfo {Show 16 fields
pub name: String,
pub company: String,
pub contact_email: String,
pub support_url: String,
pub public_key: String,
pub fingerprint: String,
pub short_fingerprint: String,
pub added_unix_seconds: Option<u64>,
pub not_before_unix_seconds: u64,
pub not_after_unix_seconds: u64,
pub serial_number: String,
pub issuer: String,
pub subject: String,
pub basic_constraints: String,
pub key_usage: String,
pub extended_key_usage: String,
}Fields
name: Stringcompany: Stringcontact_email: Stringsupport_url: Stringpublic_key: StringCompressed secp256k1 public key encoded as lowercase hexadecimal.
fingerprint: StringSHA-256 of the compressed 33-byte public key, encoded as 64 lowercase hex characters.
short_fingerprint: StringThe first and last four fingerprint bytes separated by an ellipsis.
added_unix_seconds: Option<u64>When the certificate was first imported, or None if its file carries an unreadable timestamp.
not_before_unix_seconds: u64not_after_unix_seconds: u64serial_number: Stringissuer: Stringsubject: Stringbasic_constraints: Stringkey_usage: Stringextended_key_usage: StringImplementations
impl ThirdPartyCertificateInfo
impl ThirdPartyCertificateInfo
pub fn is_usable(&self) -> bool
pub fn is_usable(&self) -> bool
Whether the device clock falls inside the validity window, the only state in which the certificate authorizes an app.
pub fn has_expired(&self) -> bool
pub fn is_not_yet_valid(&self) -> bool
Trait Implementations
impl Archive for ThirdPartyCertificateInfowhere
String: Archive,
Option<u64>: Archive,
u64: Archive,
impl Archive for ThirdPartyCertificateInfowhere
String: Archive,
Option<u64>: Archive,
u64: Archive,
const COPY_OPTIMIZATION: CopyOptimization<Self>
const COPY_OPTIMIZATION: CopyOptimization<Self>
An optimization flag that allows the bytes of this type to be copied
directly to a writer instead of calling
serialize. Read moretype Archived = ArchivedThirdPartyCertificateInfo
type Archived = ArchivedThirdPartyCertificateInfo
The archived representation of this type. Read more
type Resolver = ThirdPartyCertificateInfoResolver
type Resolver = ThirdPartyCertificateInfoResolver
The resolver for this type. It must contain all the additional
information from serializing needed to make the archived type from
the normal type.
impl Clone for ThirdPartyCertificateInfo
impl Clone for ThirdPartyCertificateInfo
fn clone(&self) -> ThirdPartyCertificateInfo
fn clone(&self) -> ThirdPartyCertificateInfo
Returns a duplicate of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Debug for ThirdPartyCertificateInfo
impl Debug for ThirdPartyCertificateInfo
impl<__D: Fallible + ?Sized> Deserialize<ThirdPartyCertificateInfo, __D> for Archived<ThirdPartyCertificateInfo>where
String: Archive,
<String as Archive>::Archived: Deserialize<String, __D>,
Option<u64>: Archive,
<Option<u64> as Archive>::Archived: Deserialize<Option<u64>, __D>,
u64: Archive,
<u64 as Archive>::Archived: Deserialize<u64, __D>,
impl<__D: Fallible + ?Sized> Deserialize<ThirdPartyCertificateInfo, __D> for Archived<ThirdPartyCertificateInfo>where
String: Archive,
<String as Archive>::Archived: Deserialize<String, __D>,
Option<u64>: Archive,
<Option<u64> as Archive>::Archived: Deserialize<Option<u64>, __D>,
u64: Archive,
<u64 as Archive>::Archived: Deserialize<u64, __D>,
fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<ThirdPartyCertificateInfo, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<ThirdPartyCertificateInfo, <__D as Fallible>::Error>
Deserializes using the given deserializer
impl<__S: Fallible + ?Sized> Serialize<__S> for ThirdPartyCertificateInfowhere
String: Serialize<__S>,
Option<u64>: Serialize<__S>,
u64: Serialize<__S>,
impl<__S: Fallible + ?Sized> Serialize<__S> for ThirdPartyCertificateInfowhere
String: Serialize<__S>,
Option<u64>: Serialize<__S>,
u64: Serialize<__S>,
fn serialize(
&self,
serializer: &mut __S,
) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
fn serialize( &self, serializer: &mut __S, ) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can
create the archived type.