pub struct CanonicalApplicationScopes(/* private fields */);Expand description
One sorted, unique and bounded set of canonical application scopes.
Implementations§
Source§impl CanonicalApplicationScopes
impl CanonicalApplicationScopes
Sourcepub fn for_verified_grant(
scopes: Vec<ApplicationScope>,
) -> Result<CanonicalApplicationScopes, ApplicationScopeError>
pub fn for_verified_grant( scopes: Vec<ApplicationScope>, ) -> Result<CanonicalApplicationScopes, ApplicationScopeError>
Canonicalize scopes granted by one verified delegated-token role grant.
Sourcepub fn for_session(
scopes: Vec<ApplicationScope>,
) -> Result<CanonicalApplicationScopes, ApplicationScopeError>
pub fn for_session( scopes: Vec<ApplicationScope>, ) -> Result<CanonicalApplicationScopes, ApplicationScopeError>
Canonicalize the non-empty scope subset retained by one local session.
Sourcepub fn contains(&self, scope: ApplicationScopeRef<'_>) -> bool
pub fn contains(&self, scope: ApplicationScopeRef<'_>) -> bool
Return whether this set contains the validated scope.
Sourcepub fn as_slice(&self) -> &[ApplicationScope]
pub fn as_slice(&self) -> &[ApplicationScope]
Return the sorted canonical scopes.
Trait Implementations§
Source§impl Clone for CanonicalApplicationScopes
impl Clone for CanonicalApplicationScopes
Source§fn clone(&self) -> CanonicalApplicationScopes
fn clone(&self) -> CanonicalApplicationScopes
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 CanonicalApplicationScopes
impl Debug for CanonicalApplicationScopes
impl Eq for CanonicalApplicationScopes
impl StructuralPartialEq for CanonicalApplicationScopes
Auto Trait Implementations§
impl Freeze for CanonicalApplicationScopes
impl RefUnwindSafe for CanonicalApplicationScopes
impl Send for CanonicalApplicationScopes
impl Sync for CanonicalApplicationScopes
impl Unpin for CanonicalApplicationScopes
impl UnsafeUnpin for CanonicalApplicationScopes
impl UnwindSafe for CanonicalApplicationScopes
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