pub struct StoredTimedKindGrant {
pub kind: u16,
pub expires_at: u64,
}Expand description
A single timed per-kind auto-approve grant persisted for a bunker client.
Survives restart; pruned on restore once expires_at has passed.
Fields§
§kind: u16Event kind this grant auto-approves.
expires_at: u64Unix timestamp (seconds) when the grant expires.
Trait Implementations§
Source§impl Clone for StoredTimedKindGrant
impl Clone for StoredTimedKindGrant
Source§impl Debug for StoredTimedKindGrant
impl Debug for StoredTimedKindGrant
Source§impl<'de> Deserialize<'de> for StoredTimedKindGrant
impl<'de> Deserialize<'de> for StoredTimedKindGrant
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for StoredTimedKindGrant
impl Freeze for StoredTimedKindGrant
impl Move for StoredTimedKindGrant
impl RefUnwindSafe for StoredTimedKindGrant
impl Send for StoredTimedKindGrant
impl Sync for StoredTimedKindGrant
impl Unpin for StoredTimedKindGrant
impl UnsafeUnpin for StoredTimedKindGrant
impl UnwindSafe for StoredTimedKindGrant
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