[−][src]Struct aliri_oauth2::Scopes
A set of scopes for defining access permissions
Implementations
impl Scopes
[src]
pub fn empty() -> Self
[src]
Produces an empty scope set
pub fn single<S>(scope: S) -> Self where
S: Into<Scope>,
[src]
S: Into<Scope>,
Constructs a new scope set from a single scope
pub fn from_scopes<I, S>(scopes: I) -> Self where
I: IntoIterator<Item = S>,
S: Into<Scope>,
[src]
I: IntoIterator<Item = S>,
S: Into<Scope>,
Constructs a new scope set from a set of scopes
pub fn insert(&mut self, scope: Scope)
[src]
Adds a scope to the scope set
pub fn iter(&self) -> impl Iterator<Item = &ScopeRef>
[src]
Produces an iterator of the scopes in this set
pub fn contains_all(&self, subset: &Scopes) -> bool
[src]
Checks to see whether this set of scopes contains all of the scopes required.
Trait Implementations
impl Clone for Scopes
[src]
impl Debug for Scopes
[src]
impl Default for Scopes
[src]
impl<'de> Deserialize<'de> for Scopes
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Scopes
[src]
impl<S> Extend<S> for Scopes where
S: Into<Scope>,
[src]
S: Into<Scope>,
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = S>,
[src]
I: IntoIterator<Item = S>,
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl Extend<Scopes> for ScopesPolicy
[src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = Scopes>,
[src]
I: IntoIterator<Item = Scopes>,
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl<'_> From<&'_ str> for Scopes
[src]
impl From<Option<ScopesDto>> for Scopes
[src]
impl From<String> for Scopes
[src]
impl<S> FromIterator<S> for Scopes where
S: Into<Scope>,
[src]
S: Into<Scope>,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = S>,
[src]
I: IntoIterator<Item = S>,
impl FromIterator<Scopes> for ScopesPolicy
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = Scopes>,
[src]
I: IntoIterator<Item = Scopes>,
impl FromStr for Scopes
[src]
type Err = Infallible
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl HasScopes for Scopes
[src]
impl IntoIterator for Scopes
[src]
type Item = Scope
The type of the elements being iterated over.
type IntoIter = <AHashSet<Scope> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a> IntoIterator for &'a Scopes
[src]
type Item = &'a ScopeRef
The type of the elements being iterated over.
type IntoIter = Iter<'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl PartialEq<Scopes> for Scopes
[src]
impl Serialize for Scopes
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Scopes
[src]
impl StructuralPartialEq for Scopes
[src]
Auto Trait Implementations
impl RefUnwindSafe for Scopes
impl Send for Scopes
impl Sync for Scopes
impl Unpin for Scopes
impl UnwindSafe for Scopes
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,