pub struct InterruptResolver { /* private fields */ }Expand description
Authenticated identity and granted authorization scopes of one resolver.
A durable resolver always has an authenticated principal. The scope set is the bounded authority snapshot evaluated for this resolution, not a bearer token and never a credential.
Implementations§
Source§impl InterruptResolver
impl InterruptResolver
Sourcepub const fn new(principal: PrincipalIdentity, granted_scopes: ScopeSet) -> Self
pub const fn new(principal: PrincipalIdentity, granted_scopes: ScopeSet) -> Self
Constructs resolver provenance from validated identity and scopes.
Sourcepub const fn principal(&self) -> &PrincipalIdentity
pub const fn principal(&self) -> &PrincipalIdentity
Returns the authenticated resolver identity.
Sourcepub const fn granted_scopes(&self) -> &ScopeSet
pub const fn granted_scopes(&self) -> &ScopeSet
Returns the authority snapshot presented for resolution.
Trait Implementations§
Source§impl Clone for InterruptResolver
impl Clone for InterruptResolver
Source§impl Debug for InterruptResolver
impl Debug for InterruptResolver
Source§impl<'de> Deserialize<'de> for InterruptResolver
impl<'de> Deserialize<'de> for InterruptResolver
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
impl Eq for InterruptResolver
Source§impl JsonSchema for InterruptResolver
impl JsonSchema for InterruptResolver
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for InterruptResolver
impl PartialEq for InterruptResolver
Source§impl Serialize for InterruptResolver
impl Serialize for InterruptResolver
impl StructuralPartialEq for InterruptResolver
Auto Trait Implementations§
impl Forget for InterruptResolver
impl Freeze for InterruptResolver
impl Move for InterruptResolver
impl RefUnwindSafe for InterruptResolver
impl Send for InterruptResolver
impl Sync for InterruptResolver
impl Unpin for InterruptResolver
impl UnsafeUnpin for InterruptResolver
impl UnwindSafe for InterruptResolver
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