pub struct TokenRow {
pub token_hash: String,
pub label: Option<String>,
pub expires_at: Option<i64>,
pub revoked: bool,
pub grants: Vec<String>,
}Expand description
A credential and its grants, as stored.
Fields§
§token_hash: String§label: Option<String>§expires_at: Option<i64>Unix seconds.
revoked: bool§grants: Vec<String>The directories this credential may list and download.
Implementations§
Auto Trait Implementations§
impl Freeze for TokenRow
impl RefUnwindSafe for TokenRow
impl Send for TokenRow
impl Sync for TokenRow
impl Unpin for TokenRow
impl UnsafeUnpin for TokenRow
impl UnwindSafe for TokenRow
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