Enum oauth2::AuthType [−][src]
#[non_exhaustive] pub enum AuthType { RequestBody, BasicAuth, }
Expand description
Indicates whether requests to the authorization server should use basic authentication or include the parameters in the request body for requests in which either is valid.
The default AuthType is BasicAuth, following the recommendation of Section 2.3.1 of RFC 6749.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
The client_id and client_secret will be included as part of the request body.
The client_id and client_secret will be included using the basic auth authentication scheme.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AuthType
impl UnwindSafe for AuthType
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V