Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

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: String

Compressed secp256k1 public key encoded as lowercase hexadecimal.

fingerprint: String

SHA-256 of the compressed 33-byte public key, encoded as 64 lowercase hex characters.

short_fingerprint: String

The 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: String

Implementations

impl ThirdPartyCertificateInfo

pub fn is_usable(&self) -> bool

Permission: not needed

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

Permission: not needed

pub fn is_not_yet_valid(&self) -> bool

Permission: not needed

Trait Implementations

impl Archive for ThirdPartyCertificateInfo
where String: Archive, Option<u64>: Archive, u64: Archive,

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 more

type Archived = ArchivedThirdPartyCertificateInfo

The archived representation of this type. Read more

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.

fn resolve(&self, resolver: Self::Resolver, out: Place<Self::Archived>)

Creates the archived version of this value at the given position and writes it to the given output. Read more

impl Clone for ThirdPartyCertificateInfo

fn clone(&self) -> ThirdPartyCertificateInfo

Returns a duplicate of the value. Read more
1.0.0

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl Debug for ThirdPartyCertificateInfo

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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>

Deserializes using the given deserializer

impl<__S: Fallible + ?Sized> Serialize<__S> for ThirdPartyCertificateInfo
where 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>

Writes the dependencies for the object and returns a resolver that can create the archived type.

Auto Trait Implementations

impl Freeze for ThirdPartyCertificateInfo

impl RefUnwindSafe for ThirdPartyCertificateInfo

impl Send for ThirdPartyCertificateInfo

impl Sync for ThirdPartyCertificateInfo

impl Unpin for ThirdPartyCertificateInfo

impl UnsafeUnpin for ThirdPartyCertificateInfo

impl UnwindSafe for ThirdPartyCertificateInfo