[][src]Struct graph_oauth::oauth::GrantSelector

pub struct GrantSelector<T> { /* fields omitted */ }

Implementations

impl GrantSelector<AccessTokenGrant>[src]

pub fn token_flow(self) -> ImplicitGrant[src]

Create a new instance for token flow.

See

Microsoft Token Flow Authorizaiton

Example

let open_id = oauth.build().token_flow();

pub fn code_flow(self) -> AccessTokenGrant[src]

Create a new instance for code flow.

See

Microsoft Code Flow Authorizaiton

Example

let open_id = oauth.build().code_flow();

pub fn implicit_grant(self) -> ImplicitGrant[src]

Create a new instance for the implicit grant.

See

Implicit Grant for OAuth 2.0

Example

let open_id = oauth.build().implicit_grant();

pub fn authorization_code_grant(self) -> AccessTokenGrant[src]

Create a new instance for authorization code grant.

See

Authorization Code Grant for OAuth 2.0

Example

let open_id = oauth.build().authorization_code_grant();

pub fn open_id_connect(self) -> AccessTokenGrant[src]

Create a new instance for the open id connect grant.

See

Microsoft Open ID Connect

Example

let open_id = oauth.build().open_id_connect();

pub fn client_credentials(self) -> AccessTokenGrant[src]

Create a new instance for the open id connect grant.

See

Microsoft Client Credentials

Example

let open_id = oauth.build().client_credentials();

pub fn resource_owner_password_credentials(self) -> AccessTokenGrant[src]

Create a new instance for the resource owner password credentials grant.

See

Microsoft Resource Owner Password Credentials

Example

let open_id = oauth.build().resource_owner_password_credentials();

impl GrantSelector<AsyncAccessTokenGrant>[src]

pub fn token_flow(self) -> ImplicitGrant[src]

Create a new instance for token flow.

See

Microsoft Token Flow Authorizaiton

Example

let open_id = oauth.build().token_flow();

pub fn code_flow(self) -> AsyncAccessTokenGrant[src]

Create a new instance for code flow.

See

Microsoft Code Flow Authorizaiton

Example

let open_id = oauth.build().code_flow();

pub fn implicit_grant(self) -> ImplicitGrant[src]

Create a new instance for the implicit grant.

See

Implicit Grant for OAuth 2.0

Example

let open_id = oauth.build().implicit_grant();

pub fn authorization_code_grant(self) -> AsyncAccessTokenGrant[src]

Create a new instance for authorization code grant.

See

Authorization Code Grant for OAuth 2.0

Example

let open_id = oauth.build().authorization_code_grant();

pub fn open_id_connect(self) -> AsyncAccessTokenGrant[src]

Create a new instance for the open id connect grant.

See

Microsoft Open ID Connect

Example

let open_id = oauth.build().open_id_connect();

pub fn client_credentials(self) -> AsyncAccessTokenGrant[src]

Create a new instance for the open id connect grant.

See

Microsoft Client Credentials

Example

let open_id = oauth.build().client_credentials();

pub fn resource_owner_password_credentials(self) -> AsyncAccessTokenGrant[src]

Create a new instance for the resource owner password credentials grant.

See

Microsoft Resource Owner Password Credentials

Example

let open_id = oauth.build().resource_owner_password_credentials();

Auto Trait Implementations

impl<T> RefUnwindSafe for GrantSelector<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for GrantSelector<T> where
    T: Send
[src]

impl<T> Sync for GrantSelector<T> where
    T: Sync
[src]

impl<T> Unpin for GrantSelector<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for GrantSelector<T> where
    T: UnwindSafe
[src]

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument 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.