Struct oauth2_client::device_authorization_grant::device_access_token_endpoint::DeviceAccessTokenEndpoint [−][src]
pub struct DeviceAccessTokenEndpoint<'a, SCOPE> where
SCOPE: Scope, { /* fields omitted */ }
Implementations
pub fn new(
provider: &'a (dyn ProviderExtDeviceAuthorizationGrant<Scope = SCOPE> + Send + Sync),
device_authorization_response_successful_body: DA_RES_SuccessfulBody
) -> Self
Trait Implementations
impl<'a, SCOPE> RetryableEndpoint for DeviceAccessTokenEndpoint<'a, SCOPE> where
SCOPE: Scope + Serialize + DeserializeOwned,
impl<'a, SCOPE> RetryableEndpoint for DeviceAccessTokenEndpoint<'a, SCOPE> where
SCOPE: Scope + Serialize + DeserializeOwned,
type ParseResponseOutput = Result<RES_SuccessfulBody<SCOPE>, RES_ErrorBody>
fn render_request(
&self,
_retry: Option<&RetryableEndpointRetry<Self::RetryReason>>
) -> Result<Request<Body>, Self::RenderRequestError>
fn parse_response(
&self,
response: Response<Body>,
_retry: Option<&RetryableEndpointRetry<Self::RetryReason>>
) -> Result<Result<Self::ParseResponseOutput, Self::RetryReason>, Self::ParseResponseError>
Auto Trait Implementations
impl<'a, SCOPE> !RefUnwindSafe for DeviceAccessTokenEndpoint<'a, SCOPE>
impl<'a, SCOPE> Send for DeviceAccessTokenEndpoint<'a, SCOPE>
impl<'a, SCOPE> Sync for DeviceAccessTokenEndpoint<'a, SCOPE>
impl<'a, SCOPE> Unpin for DeviceAccessTokenEndpoint<'a, SCOPE>
impl<'a, SCOPE> !UnwindSafe for DeviceAccessTokenEndpoint<'a, SCOPE>
Blanket Implementations
Mutably borrows from an owned value. Read more