Enum oauth2_core::access_token_request::Body
source · pub enum Body<SCOPE>where
SCOPE: Scope,{
AuthorizationCodeGrant(BodyWithAuthorizationCodeGrant),
DeviceAuthorizationGrant(BodyWithDeviceAuthorizationGrant),
ClientCredentialsGrant(BodyWithClientCredentialsGrant<SCOPE>),
ResourceOwnerPasswordCredentialsGrant(BodyWithResourceOwnerPasswordCredentialsGrant<SCOPE>),
}
Variants
AuthorizationCodeGrant(BodyWithAuthorizationCodeGrant)
https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.3
DeviceAuthorizationGrant(BodyWithDeviceAuthorizationGrant)
https://datatracker.ietf.org/doc/html/rfc8628#section-3.4
ClientCredentialsGrant(BodyWithClientCredentialsGrant<SCOPE>)
https://datatracker.ietf.org/doc/html/rfc6749#section-4.4
ResourceOwnerPasswordCredentialsGrant(BodyWithResourceOwnerPasswordCredentialsGrant<SCOPE>)
Trait Implementations
sourceimpl<'de, SCOPE> Deserialize<'de> for Body<SCOPE>where
SCOPE: Scope,
SCOPE: Deserialize<'de>,
impl<'de, SCOPE> Deserialize<'de> for Body<SCOPE>where
SCOPE: Scope,
SCOPE: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<SCOPE> RefUnwindSafe for Body<SCOPE>where
SCOPE: RefUnwindSafe,
impl<SCOPE> Send for Body<SCOPE>where
SCOPE: Send,
impl<SCOPE> Sync for Body<SCOPE>where
SCOPE: Sync,
impl<SCOPE> Unpin for Body<SCOPE>where
SCOPE: Unpin,
impl<SCOPE> UnwindSafe for Body<SCOPE>where
SCOPE: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more