pub struct StoredCert {
pub chain_pem: String,
pub key_pem: String,
pub issued_at: i64,
}Expand description
What storage persists per certificate.
Deliberately not Serialize: each backend writes its own shape (the
filesystem one splits the parts across files, the redis one seals the key
into a CertRecord), and a blanket derive would make it one
serde_json::to_string away from a private key landing in a log line or an
API response. The hand-written Debug redacts key_pem for the same
reason — it exists only so tests can assert_eq! on round-trips.
Fields§
§chain_pem: String§key_pem: String§issued_at: i64Trait Implementations§
Source§impl Clone for StoredCert
impl Clone for StoredCert
Source§fn clone(&self) -> StoredCert
fn clone(&self) -> StoredCert
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StoredCert
impl Debug for StoredCert
Source§impl<'de> Deserialize<'de> for StoredCert
impl<'de> Deserialize<'de> for StoredCert
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 StoredCert
impl PartialEq for StoredCert
Source§fn eq(&self, other: &StoredCert) -> bool
fn eq(&self, other: &StoredCert) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StoredCert
Auto Trait Implementations§
impl Freeze for StoredCert
impl RefUnwindSafe for StoredCert
impl Send for StoredCert
impl Sync for StoredCert
impl Unpin for StoredCert
impl UnsafeUnpin for StoredCert
impl UnwindSafe for StoredCert
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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