pub struct Certificate {Show 13 fields
pub serial_number: Value<BigUint>,
pub not_before: Value<String>,
pub not_after: Value<String>,
pub issuer: Name,
pub subject: Name,
pub subject_public_key_info: SubjectPublicKeyInfo,
pub authority_key_identifier: Option<Value<Vec<u8>>>,
pub subject_key_identifier: Option<Value<Vec<u8>>>,
pub basic_constraints: Option<BasicConstraints>,
pub key_usage: Option<KeyUsage>,
pub subject_alt_name: Name,
pub private_extensions: Vec<CertificateExtension>,
pub signature: Signature,
}Expand description
Certificate specification.
Fields§
§serial_number: Value<BigUint>X509 certificate’s serial number
not_before: Value<String>X509 validity’s not before date. The format must be a valid ASN1 GeneralizedTime.
not_after: Value<String>X509 validity’s not after date. The format must be a valid ASN1 GeneralizedTime.
issuer: NameX509 certificate’s issuer.
subject: NameX509 certificate’s subject.
subject_public_key_info: SubjectPublicKeyInfoX509 certificate’s public key.
X509 certificate’s authority key identifier.
subject_key_identifier: Option<Value<Vec<u8>>>X509 certificate’s public key identifier.
basic_constraints: Option<BasicConstraints>§key_usage: Option<KeyUsage>§subject_alt_name: NameX509 Subject Alternative Name extension, optional.
private_extensions: Vec<CertificateExtension>Non-standard X509 certificate extensions.
signature: SignatureX509 certificate’s signature.
Trait Implementations§
Source§impl Clone for Certificate
impl Clone for Certificate
Source§fn clone(&self) -> Certificate
fn clone(&self) -> Certificate
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 Certificate
impl Debug for Certificate
Source§impl<'de> Deserialize<'de> for Certificate
impl<'de> Deserialize<'de> for Certificate
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 PartialEq for Certificate
impl PartialEq for Certificate
Source§impl Serialize for Certificate
impl Serialize for Certificate
Source§impl Subst for Certificate
impl Subst for Certificate
impl Eq for Certificate
impl StructuralPartialEq for Certificate
Auto Trait Implementations§
impl Freeze for Certificate
impl RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl UnwindSafe for Certificate
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> 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.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