pub struct Certificate {
pub issuer: Option<String>,
pub not_after_time: Option<DateTime<Utc>>,
pub not_before_time: Option<DateTime<Utc>>,
pub parsed: Option<bool>,
pub raw_der: Option<Vec<u8>>,
pub serial_number: Option<String>,
pub sha256_fingerprint: Option<String>,
pub subject: Option<String>,
pub subject_alternative_dns_names: Option<Vec<String>>,
}
Expand description
A Certificate represents an X.509 certificate used to authenticate HTTPS connections to EKM replicas.
This type is not used in any activity, and only used as part of another schema.
Fields§
§issuer: Option<String>
Output only. The issuer distinguished name in RFC 2253 format. Only present if parsed is true.
not_after_time: Option<DateTime<Utc>>
Output only. The certificate is not valid after this time. Only present if parsed is true.
not_before_time: Option<DateTime<Utc>>
Output only. The certificate is not valid before this time. Only present if parsed is true.
parsed: Option<bool>
Output only. True if the certificate was parsed successfully.
raw_der: Option<Vec<u8>>
Required. The raw certificate bytes in DER format.
serial_number: Option<String>
Output only. The certificate serial number as a hex string. Only present if parsed is true.
sha256_fingerprint: Option<String>
Output only. The SHA-256 certificate fingerprint as a hex string. Only present if parsed is true.
subject: Option<String>
Output only. The subject distinguished name in RFC 2253 format. Only present if parsed is true.
subject_alternative_dns_names: Option<Vec<String>>
Output only. The subject Alternative DNS names. Only present if parsed is true.
Trait Implementations§
Source§impl Clone for Certificate
impl Clone for Certificate
Source§fn clone(&self) -> Certificate
fn clone(&self) -> Certificate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Certificate
impl Debug for Certificate
Source§impl Default for Certificate
impl Default for Certificate
Source§fn default() -> Certificate
fn default() -> 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>,
Source§impl Serialize for Certificate
impl Serialize for Certificate
impl Part 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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