pub struct TokenScopes {
pub projects: ProjectScope,
pub role: TokenRole,
pub scripts: Option<Vec<String>>,
pub executions: Option<Vec<String>>,
pub can_mint: bool,
pub features: Vec<String>,
pub org_id: Option<i64>,
}Fields§
§projects: ProjectScope§role: TokenRole§scripts: Option<Vec<String>>§executions: Option<Vec<String>>§can_mint: boolWhether the new token may itself mint child tokens. Defaults to
false. Service tokens always pass; scoped minters must already have
can_mint set on their own scopes for this to be honored.
features: Vec<String>Feature flags granted to this token (e.g. ["lumen"]). Empty by
default. Service tokens have all features unless explicitly restricted.
org_id: Option<i64>Optional org binding. Studio populates this on every per-user mint so
akribes-server can stamp projects.organization_id and enforce
OrgWide scope checks. Legacy CLI mints leave it None.
Trait Implementations§
Source§impl Clone for TokenScopes
impl Clone for TokenScopes
Source§fn clone(&self) -> TokenScopes
fn clone(&self) -> TokenScopes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TokenScopes
impl Debug for TokenScopes
Source§impl<'de> Deserialize<'de> for TokenScopes
impl<'de> Deserialize<'de> for TokenScopes
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
Auto Trait Implementations§
impl Freeze for TokenScopes
impl RefUnwindSafe for TokenScopes
impl Send for TokenScopes
impl Sync for TokenScopes
impl Unpin for TokenScopes
impl UnsafeUnpin for TokenScopes
impl UnwindSafe for TokenScopes
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