pub struct Credential {
pub token_hash: String,
pub label: Option<String>,
pub created_at: i64,
pub expires_at: Option<i64>,
pub revoked: bool,
pub grants: Vec<String>,
}Expand description
One row of token list.
Fields§
§token_hash: String§label: Option<String>§created_at: i64§expires_at: Option<i64>§revoked: bool§grants: Vec<String>Implementations§
Source§impl Credential
impl Credential
pub fn short_hash(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Credential
impl RefUnwindSafe for Credential
impl Send for Credential
impl Sync for Credential
impl Unpin for Credential
impl UnsafeUnpin for Credential
impl UnwindSafe for Credential
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