#[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.
RequestBody
The client_id and client_secret (if set) will be included as part of the request body.
BasicAuth
The client_id and client_secret will be included using the basic auth authentication scheme.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthType
impl RefUnwindSafe for AuthType
impl Send for AuthType
impl Sync for AuthType
impl Unpin for AuthType
impl UnwindSafe for AuthType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more