pub enum FileExpiry {
Usable {
expires_at: Option<Timestamp>,
},
Expired,
}Expand description
Known read-only import fields. Wrong-typed optional fields retain the old missing/null behavior; extra fields are ignored and no credential data is echoed in parse errors. A read-only file can carry a usable token without an expiry claim. An expired file reports no timestamp because the existing reader refuses it before returning a token.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Forget for FileExpiry
impl Freeze for FileExpiry
impl Move for FileExpiry
impl RefUnwindSafe for FileExpiry
impl Send for FileExpiry
impl Sync for FileExpiry
impl Unpin for FileExpiry
impl UnsafeUnpin for FileExpiry
impl UnwindSafe for FileExpiry
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