[][src]Struct oxide_auth::frontends::simple::extensions::AddonList

pub struct AddonList { /* fields omitted */ }

A simple list of loosly related authorization and access addons.

The owning representation of access extensions can be switched out to Box<_>, Rc<_> or other types.

Methods

impl AddonList[src]

pub fn new() -> Self[src]

Create an empty extension system.

pub fn push_authorization<A>(&mut self, addon: A) where
    A: AuthorizationAddon + Send + Sync + 'static, 
[src]

Add an addon that only applies to authorization.

pub fn push_access_token<A>(&mut self, addon: A) where
    A: AccessTokenAddon + Send + Sync + 'static, 
[src]

Add an addon that only applies to access_token.

pub fn push_code<A>(&mut self, addon: A) where
    A: AuthorizationAddon + AccessTokenAddon + Send + Sync + 'static, 
[src]

Add an addon that applies to the whole code grant flow.

The addon gets added both the authorization and access token addons.

Trait Implementations

impl Extension for AddonList[src]

impl Extension for AddonList[src]

impl Extension for AddonList[src]

impl Default for AddonList[src]

impl Debug for AddonList[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> UnsafeAny for T where
    T: Any

impl<T> IntoCollection<T> for T

impl<T, I> AsResult<T, I> for T where
    I: Input,