pub struct Scope {
pub spaces: Vec<String>,
pub caps: CapabilitySet,
pub predicate_filter: Option<Vec<String>>,
pub entity_type_filter: Option<Vec<String>>,
pub expires_at: Option<Timestamp>,
pub label: String,
}Expand description
Authorization scope carried by a token. DESIGN §11.2.
Fields§
§spaces: Vec<String>Space ids this scope grants access to.
caps: CapabilitySetCapabilities granted.
predicate_filter: Option<Vec<String>>Optional predicate allow-list (e.g. hide health_*).
entity_type_filter: Option<Vec<String>>Optional entity-type allow-list.
expires_at: Option<Timestamp>When the token expires.
label: StringHuman-readable label for the token (informational only).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Scope
impl<'de> Deserialize<'de> for Scope
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 Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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