Trait matrix_sdk::oidc::types::scope::ScopeExt

source ·
pub trait ScopeExt {
    // Required methods
    fn insert_token(&mut self, token: ScopeToken) -> bool;
    fn contains_token(&self, token: &ScopeToken) -> bool;
}
Available on crate feature experimental-oidc only.
Expand description

Helpers for Scope to work with ScopeToken.

Required Methods§

source

fn insert_token(&mut self, token: ScopeToken) -> bool

Insert the given ScopeToken into this Scope.

source

fn contains_token(&self, token: &ScopeToken) -> bool

Whether this Scope contains the given ScopeToken.

Implementors§