pub struct TokenIntrospection {Show 17 fields
pub kind: Kind,
pub email: String,
pub username: String,
pub label: Option<String>,
pub token_prefix: Option<String>,
pub created_at: Option<String>,
pub expiration: Option<String>,
pub workspace_id: Option<String>,
pub workspace_ids: Option<Vec<String>>,
pub scopes: Option<Vec<String>>,
pub read_only: bool,
pub admin_withheld: bool,
pub super_admin: bool,
pub allowed_ips: Option<Vec<String>>,
pub job_id: Option<Uuid>,
pub workspace: Option<Box<TokenWorkspaceAccess>>,
pub route: Option<Box<TokenRouteCheck>>,
}Fields§
§kind: Kind§email: String§username: String§label: Option<String>§token_prefix: Option<String>§created_at: Option<String>§expiration: Option<String>§workspace_id: Option<String>the one workspace the token is bound to; absent when it is not bound
workspace_ids: Option<Vec<String>>the workspaces a signed token is bound to, when it names several
scopes: Option<Vec<String>>absent when the token is unrestricted
read_only: bool§admin_withheld: boolthe token does not carry its owner’s workspace admin rights; the rights it does hold in a workspace are in workspace
super_admin: boolwhether the token reaches superadmin routes: its owner is a superadmin, and it is neither a job token nor one that withholds those rights
allowed_ips: Option<Vec<String>>§job_id: Option<Uuid>§workspace: Option<Box<TokenWorkspaceAccess>>§route: Option<Box<TokenRouteCheck>>Implementations§
Trait Implementations§
Source§impl Clone for TokenIntrospection
impl Clone for TokenIntrospection
Source§impl Debug for TokenIntrospection
impl Debug for TokenIntrospection
Source§impl Default for TokenIntrospection
impl Default for TokenIntrospection
Source§impl<'de> Deserialize<'de> for TokenIntrospection
impl<'de> Deserialize<'de> for TokenIntrospection
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 TokenIntrospection
impl PartialEq for TokenIntrospection
Source§impl Serialize for TokenIntrospection
impl Serialize for TokenIntrospection
impl StructuralPartialEq for TokenIntrospection
Auto Trait Implementations§
impl Forget for TokenIntrospection
impl Freeze for TokenIntrospectionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const TokenWorkspaceAccess is !null: Freeze,
PhantomData<TokenWorkspaceAccess>: Freeze,
*const TokenRouteCheck is !null: Freeze,
PhantomData<TokenRouteCheck>: Freeze,
impl Move for TokenIntrospection
impl RefUnwindSafe for TokenIntrospection
impl Send for TokenIntrospection
impl Sync for TokenIntrospection
impl Unpin for TokenIntrospection
impl UnsafeUnpin for TokenIntrospectionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const TokenWorkspaceAccess is !null: UnsafeUnpin,
PhantomData<TokenWorkspaceAccess>: UnsafeUnpin,
*const TokenRouteCheck is !null: UnsafeUnpin,
PhantomData<TokenRouteCheck>: UnsafeUnpin,
impl UnwindSafe for TokenIntrospectionwhere
RawVecInner: UnwindSafe,
BoxRaw<TokenWorkspaceAccess>: UnwindSafe,
BoxRaw<TokenRouteCheck>: UnwindSafe,
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