Struct webpki::crl::OwnedRevokedCert
source · pub struct OwnedRevokedCert {
pub serial_number: Vec<u8>,
pub revocation_date: Time,
pub reason_code: Option<RevocationReason>,
pub invalidity_date: Option<Time>,
}
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: Time
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<Time>
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)