pub struct ValidityPeriod {
pub not_before: NotBefore,
pub not_after: NotAfter,
}Expand description
The time range a certificate’s signature is valid within – see Data::sign_cert.
Fields§
§not_before: NotBeforeThe start of the validity period.
not_after: NotAfterThe end of the validity period.
Implementations§
Source§impl ValidityPeriod
impl ValidityPeriod
pub fn new(not_before: NotBefore, not_after: NotAfter) -> ValidityPeriod
Trait Implementations§
Source§impl Clone for ValidityPeriod
impl Clone for ValidityPeriod
Source§fn clone(&self) -> ValidityPeriod
fn clone(&self) -> ValidityPeriod
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 ValidityPeriod
impl Debug for ValidityPeriod
impl Eq for ValidityPeriod
Source§impl Hash for ValidityPeriod
impl Hash for ValidityPeriod
Source§impl PartialEq for ValidityPeriod
impl PartialEq for ValidityPeriod
impl StructuralPartialEq for ValidityPeriod
Source§impl Tlv for ValidityPeriod
impl Tlv for ValidityPeriod
Source§fn inner_size(&self) -> usize
fn inner_size(&self) -> usize
The size of the payload contained within this TLV Read more
Source§fn critical() -> bool
fn critical() -> bool
Whether the TLV is critical, see
tlv_criticalSource§impl TlvDecode for ValidityPeriod
impl TlvDecode for ValidityPeriod
Auto Trait Implementations§
impl Freeze for ValidityPeriod
impl RefUnwindSafe for ValidityPeriod
impl Send for ValidityPeriod
impl Sync for ValidityPeriod
impl Unpin for ValidityPeriod
impl UnsafeUnpin for ValidityPeriod
impl UnwindSafe for ValidityPeriod
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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