pub struct Builder { /* private fields */ }
Expand description

A builder for OAuth2Defaults.

Implementations

Appends an item to oauth_scopes.

To override the contents of this collection use set_oauth_scopes.

OAuth 2.0 scopes that the connector supports.

OAuth 2.0 scopes that the connector supports.

Appends an item to token_urls.

To override the contents of this collection use set_token_urls.

Token URLs that can be used for OAuth 2.0 authentication.

Token URLs that can be used for OAuth 2.0 authentication.

Appends an item to auth_code_urls.

To override the contents of this collection use set_auth_code_urls.

Auth code URLs that can be used for OAuth 2.0 authentication.

Auth code URLs that can be used for OAuth 2.0 authentication.

Appends an item to oauth2_grant_types_supported.

To override the contents of this collection use set_oauth2_grant_types_supported.

OAuth 2.0 grant types supported by the connector.

OAuth 2.0 grant types supported by the connector.

Appends an item to oauth2_custom_properties.

To override the contents of this collection use set_oauth2_custom_properties.

List of custom parameters required for OAuth 2.0 authentication.

List of custom parameters required for OAuth 2.0 authentication.

Consumes the builder and constructs a OAuth2Defaults.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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