pub struct RequestedValidity {
pub not_before: Option<i64>,
pub not_after: Option<i64>,
}Expand description
The validity window an order asked for (RFC 8555 §7.4’s notBefore /
notAfter), in epoch seconds. Either half may be absent, and usually both
are — most clients let the CA decide.
A request, not an instruction: §7.4 lets the server override, and
local_ca::LocalCa clamps it to its own leaf_validity_days rather than
letting a client mint a ten-year certificate. But before this existed the
fields were stored and echoed in the order object while being dropped on the
way to the signer — so a client that asked for a window, and read one back,
got a certificate with a different one and no way to tell.
Fields§
§not_before: Option<i64>§not_after: Option<i64>Implementations§
Trait Implementations§
Source§impl Clone for RequestedValidity
impl Clone for RequestedValidity
Source§fn clone(&self) -> RequestedValidity
fn clone(&self) -> RequestedValidity
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 moreimpl Copy for RequestedValidity
Source§impl Debug for RequestedValidity
impl Debug for RequestedValidity
Source§impl Default for RequestedValidity
impl Default for RequestedValidity
Source§fn default() -> RequestedValidity
fn default() -> RequestedValidity
Returns the “default value” for a type. Read more
impl Eq for RequestedValidity
Source§impl PartialEq for RequestedValidity
impl PartialEq for RequestedValidity
impl StructuralPartialEq for RequestedValidity
Auto Trait Implementations§
impl Freeze for RequestedValidity
impl RefUnwindSafe for RequestedValidity
impl Send for RequestedValidity
impl Sync for RequestedValidity
impl Unpin for RequestedValidity
impl UnsafeUnpin for RequestedValidity
impl UnwindSafe for RequestedValidity
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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