pub struct Hidden {
    pub client: Client,
}

Fields

client: Client

Implementations

Start an OAuth 2.0 Device Authorization Grant.

This function performs a POST to the /device/auth endpoint.

This endpoint is designed to be accessed from an unauthenticated API client. It generates and records a device_code and user_code which must be verified and confirmed prior to a token being granted.

Confirm an OAuth 2.0 Device Authorization Grant.

This function performs a POST to the /device/confirm endpoint.

This endpoint is designed to be accessed by the user agent (browser), not the client requesting the token. So we do not actually return the token here; it will be returned in response to the poll on /device/token.

Request a device access token.

This function performs a POST to the /device/token endpoint.

This endpoint should be polled by the client until the user code is verified and the grant is confirmed.

This function performs a POST to the /login endpoint.

This function performs a POST to the /logout endpoint.

Fetch the user associated with the current session.

This function performs a GET to the /session/me endpoint.

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

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more