pub struct Validity {
pub not_before: u64,
pub not_after: u64,
}Expand description
Validity period: not_before <= now < not_after. Values are
ISO-8601 strings from the XML; the parser converts them to
Unix epoch seconds (u64). Spec §9.4.1.3.2.2.
future-major: enforcement happens at access-check time via
Grant::is_valid_at. The plugin itself checks now against every
check_create_* call — clock-drift tolerance is up to the caller.
Fields§
§not_before: u64Inclusive lower bound (Unix epoch seconds). 0 = none.
not_after: u64Exclusive upper bound (Unix epoch seconds). u64::MAX = none.
Implementations§
Trait Implementations§
impl Copy for Validity
impl Eq for Validity
impl StructuralPartialEq for Validity
Auto Trait Implementations§
impl Freeze for Validity
impl RefUnwindSafe for Validity
impl Send for Validity
impl Sync for Validity
impl Unpin for Validity
impl UnsafeUnpin for Validity
impl UnwindSafe for Validity
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