pub struct OwnedRevokedCert {
pub serial_number: Vec<u8>,
pub revocation_date: UnixTime,
pub reason_code: Option<RevocationReason>,
pub invalidity_date: Option<UnixTime>,
}
alloc
only.Expand description
Owned representation of a RFC 52801 profile Certificate Revocation List (CRL) revoked certificate entry.
Only available when the “alloc” feature is enabled.
Fields§
§serial_number: Vec<u8>
Serial number of the revoked certificate.
revocation_date: UnixTime
The date at which the CA processed the revocation.
reason_code: Option<RevocationReason>
Identifies the reason for the certificate revocation. When absent, the revocation reason is assumed to be RevocationReason::Unspecified. For consistency with other extensions and to ensure only one revocation reason extension may be present we maintain this field as optional instead of defaulting to unspecified.
invalidity_date: Option<UnixTime>
Provides the date on which it is known or suspected that the private key was compromised or that the certificate otherwise became invalid. This date may be earlier than the revocation date which is the date at which the CA processed the revocation.
Implementations§
Source§impl OwnedRevokedCert
impl OwnedRevokedCert
Sourcepub fn borrow(&self) -> BorrowedRevokedCert<'_>
pub fn borrow(&self) -> BorrowedRevokedCert<'_>
Convert the owned representation of this revoked cert to a borrowed version.
Trait Implementations§
Source§impl Clone for OwnedRevokedCert
impl Clone for OwnedRevokedCert
Source§fn clone(&self) -> OwnedRevokedCert
fn clone(&self) -> OwnedRevokedCert
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for OwnedRevokedCert
impl RefUnwindSafe for OwnedRevokedCert
impl Send for OwnedRevokedCert
impl Sync for OwnedRevokedCert
impl Unpin for OwnedRevokedCert
impl UnwindSafe for OwnedRevokedCert
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes