pub struct SubjectDescription {
pub hex_serial_number: Option<String>,
pub lifetime: Option<Duration>,
pub not_after_time: Option<DateTime<Utc>>,
pub not_before_time: Option<DateTime<Utc>>,
pub subject: Option<Subject>,
pub subject_alt_name: Option<SubjectAltNames>,
}Expand description
These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime.
This type is not used in any activity, and only used as part of another schema.
Fields§
§hex_serial_number: Option<String>The serial number encoded in lowercase hexadecimal.
lifetime: Option<Duration>For convenience, the actual lifetime of an issued certificate.
not_after_time: Option<DateTime<Utc>>The time after which the certificate is expired. Per RFC 5280, the validity period for a certificate is the period of time from not_before_time through not_after_time, inclusive. Corresponds to ‘not_before_time’ + ‘lifetime’ - 1 second.
not_before_time: Option<DateTime<Utc>>The time at which the certificate becomes valid.
subject: Option<Subject>Contains distinguished name fields such as the common name, location and / organization.
subject_alt_name: Option<SubjectAltNames>The subject alternative name fields.
Trait Implementations§
Source§impl Clone for SubjectDescription
impl Clone for SubjectDescription
Source§fn clone(&self) -> SubjectDescription
fn clone(&self) -> SubjectDescription
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 SubjectDescription
impl Debug for SubjectDescription
Source§impl Default for SubjectDescription
impl Default for SubjectDescription
Source§fn default() -> SubjectDescription
fn default() -> SubjectDescription
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubjectDescription
impl<'de> Deserialize<'de> for SubjectDescription
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 Serialize for SubjectDescription
impl Serialize for SubjectDescription
impl Part for SubjectDescription
Auto Trait Implementations§
impl Freeze for SubjectDescription
impl RefUnwindSafe for SubjectDescription
impl Send for SubjectDescription
impl Sync for SubjectDescription
impl Unpin for SubjectDescription
impl UnwindSafe for SubjectDescription
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