Enum oxide_auth::code_grant::authorization::Output[][src]

pub enum Output<'machine> {
    Bind {
        client_id: String,
        redirect_uri: Option<ExactUrl>,
    },
    Extend,
    Negotiate {
        bound_client: &'machine BoundClient<'static>,
        scope: Option<Scope>,
    },
    Ok {
        pre_grant: PreGrant,
        state: Option<String>,
        extensions: Extensions,
    },
    Err(Error),
}
Expand description

A request by the statemachine to the executor.

Each variant is fulfilled by certain variants of the next inputs as an argument to Authorization::advance. The output of most states is simply repeated if Input::None is provided instead.

Variants

Bind

Ask registrar to bind the client and checks its redirect_uri

Fields of Bind

client_id: String

The to-be-bound client.

redirect_uri: Option<ExactUrl>

The redirect_uri to check if any

Extend

Ask for extensions if any

Negotiate

Ask registrar to negociate

Fields of Negotiate

bound_client: &'machine BoundClient<'static>

The current bound client

scope: Option<Scope>

The scope, if any

Ok

State machine is finished, provides parameters to construct a Pending (sync or async version)

Fields of Ok

pre_grant: PreGrant

The grant

state: Option<String>

The state

extensions: Extensions

The extensions

Err(Error)

The state machine finished in an error.

The error will be repeated on any following input.

Tuple Fields of Err

0: Error

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.