Struct x509_cert::ext::pkix::PrivateKeyUsagePeriod
source · pub struct PrivateKeyUsagePeriod {
pub not_before: Option<GeneralizedTime>,
pub not_after: Option<GeneralizedTime>,
}
Expand description
PrivateKeyUsagePeriod as defined in [RFC 3280 Section 4.2.1.4].
RFC 5280 states “use of this ISO standard extension is neither deprecated nor recommended for use in the Internet PKI.”
PrivateKeyUsagePeriod ::= SEQUENCE {
notBefore [0] GeneralizedTime OPTIONAL,
notAfter [1] GeneralizedTime OPTIONAL }
-- either notBefore or notAfter MUST be present
Fields§
§not_before: Option<GeneralizedTime>
§not_after: Option<GeneralizedTime>
Trait Implementations§
source§impl AsExtension for PrivateKeyUsagePeriod
impl AsExtension for PrivateKeyUsagePeriod
source§impl AssociatedOid for PrivateKeyUsagePeriod
impl AssociatedOid for PrivateKeyUsagePeriod
source§const OID: ObjectIdentifier = ID_CE_PRIVATE_KEY_USAGE_PERIOD
const OID: ObjectIdentifier = ID_CE_PRIVATE_KEY_USAGE_PERIOD
The OID associated with this type.
source§impl Clone for PrivateKeyUsagePeriod
impl Clone for PrivateKeyUsagePeriod
source§fn clone(&self) -> PrivateKeyUsagePeriod
fn clone(&self) -> PrivateKeyUsagePeriod
Returns a copy 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 PrivateKeyUsagePeriod
impl Debug for PrivateKeyUsagePeriod
source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for PrivateKeyUsagePeriod
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for PrivateKeyUsagePeriod
source§impl<'__der_lifetime> EncodeValue for PrivateKeyUsagePeriod
impl<'__der_lifetime> EncodeValue for PrivateKeyUsagePeriod
source§impl PartialEq for PrivateKeyUsagePeriod
impl PartialEq for PrivateKeyUsagePeriod
source§fn eq(&self, other: &PrivateKeyUsagePeriod) -> bool
fn eq(&self, other: &PrivateKeyUsagePeriod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PrivateKeyUsagePeriod
impl<'__der_lifetime> Sequence<'__der_lifetime> for PrivateKeyUsagePeriod
impl StructuralEq for PrivateKeyUsagePeriod
impl StructuralPartialEq for PrivateKeyUsagePeriod
Auto Trait Implementations§
impl RefUnwindSafe for PrivateKeyUsagePeriod
impl Send for PrivateKeyUsagePeriod
impl Sync for PrivateKeyUsagePeriod
impl Unpin for PrivateKeyUsagePeriod
impl UnwindSafe for PrivateKeyUsagePeriod
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
source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
source§impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
source§fn oid(&self) -> ObjectIdentifier
fn oid(&self) -> ObjectIdentifier
Get the OID associated with this value.
source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.