pub struct ConsumedEntry {
pub token_id: String,
pub redeemed_at: DateTime<Utc>,
pub expires_at: Option<DateTime<Utc>>,
}Expand description
A single consumed token entry.
Fields§
§token_id: String§redeemed_at: DateTime<Utc>§expires_at: Option<DateTime<Utc>>Token expiry captured from the DelegationClaims. Entries with
expires_at in the past can be GC’d because the expiry check
would reject the replay before the consumed check is reached.
For tokens issued without expiry, this is None and the entry is
kept indefinitely.
Trait Implementations§
Source§impl Clone for ConsumedEntry
impl Clone for ConsumedEntry
Source§fn clone(&self) -> ConsumedEntry
fn clone(&self) -> ConsumedEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 ConsumedEntry
impl Debug for ConsumedEntry
Source§impl<'de> Deserialize<'de> for ConsumedEntry
impl<'de> Deserialize<'de> for ConsumedEntry
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
Source§impl PartialEq for ConsumedEntry
impl PartialEq for ConsumedEntry
Source§impl Serialize for ConsumedEntry
impl Serialize for ConsumedEntry
impl StructuralPartialEq for ConsumedEntry
Auto Trait Implementations§
impl Freeze for ConsumedEntry
impl RefUnwindSafe for ConsumedEntry
impl Send for ConsumedEntry
impl Sync for ConsumedEntry
impl Unpin for ConsumedEntry
impl UnsafeUnpin for ConsumedEntry
impl UnwindSafe for ConsumedEntry
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