pub struct TokenRow {
pub id: String,
pub name: String,
pub site: String,
pub scope: String,
pub hash: String,
pub hint: String,
pub created_at: i64,
pub last_used_at: Option<i64>,
}Expand description
An API token. Only its hash is stored; the token itself is shown once.
Fields§
§id: StringIts id.
name: StringIts name.
site: String“” reads every site; otherwise the one site it may read.
scope: Stringread, manage, or embed (a CMS plugin’s key, which only gets tickets that open its one site’s
read-only dashboard inside the CMS).
hash: StringThe token’s hash.
hint: StringThe token’s last four characters.
created_at: i64When it was made.
last_used_at: Option<i64>When it was last used.
Trait Implementations§
impl Eq for TokenRow
impl StructuralPartialEq for TokenRow
Auto Trait Implementations§
impl Forget for TokenRow
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