Struct ot_certs::template::Certificate
source · 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: Name
X509 certificate’s issuer.
subject: Name
X509 certificate’s subject.
subject_public_key_info: SubjectPublicKeyInfo
X509 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: Name
X509 Subject Alternative Name extension, optional.
private_extensions: Vec<CertificateExtension>
Non-standard X509 certificate extensions.
signature: Signature
X509 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 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 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<Certificate> for Certificate
impl PartialEq<Certificate> for Certificate
source§fn eq(&self, other: &Certificate) -> bool
fn eq(&self, other: &Certificate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Certificate
impl Serialize for Certificate
source§impl Subst for Certificate
impl Subst for Certificate
impl Eq for Certificate
impl StructuralEq for Certificate
impl StructuralPartialEq for Certificate
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
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