pub trait ProviderExtDeviceAuthorizationGrant: Provider + DynClone {
    // Required method
    fn device_authorization_endpoint_url(&self) -> &Url;

    // Provided methods
    fn scopes_default(&self) -> Option<Vec<<Self as Provider>::Scope>> { ... }
    fn device_authorization_request_body_extra(
        &self
    ) -> Option<Map<String, Value>> { ... }
    fn device_authorization_request_rendering(
        &self,
        _body: &DeviceAuthorizationRequestBody<<Self as Provider>::Scope>
    ) -> Option<Result<Request<Body>, Box<dyn Error + Send + Sync + 'static>>> { ... }
    fn device_authorization_response_parsing(
        &self,
        _response: &Response<Body>
    ) -> Option<Result<Result<DeviceAuthorizationResponseSuccessfulBody, DeviceAuthorizationResponseErrorBody>, Box<dyn Error + Send + Sync + 'static>>> { ... }
    fn device_access_token_request_body_extra(
        &self,
        _body: &BodyWithDeviceAuthorizationGrant,
        _device_authorization_response_body: &DeviceAuthorizationResponseSuccessfulBody
    ) -> Option<Map<String, Value>> { ... }
    fn device_access_token_request_rendering(
        &self,
        _body: &BodyWithDeviceAuthorizationGrant,
        _device_authorization_response_body: &DeviceAuthorizationResponseSuccessfulBody
    ) -> Option<Result<Request<Body>, Box<dyn Error + Send + Sync + 'static>>> { ... }
    fn device_access_token_response_parsing(
        &self,
        _response: &Response<Body>
    ) -> Option<Result<Result<Result<AccessTokenResponseSuccessfulBody<<Self as Provider>::Scope>, AccessTokenResponseErrorBody>, DeviceAccessTokenEndpointRetryReason>, Box<dyn Error + Send + Sync + 'static>>> { ... }
}

Required Methods§

Provided Methods§

Trait Implementations§

source§

impl<'clone, SCOPE> Clone for Box<dyn ProviderExtDeviceAuthorizationGrant<Scope = SCOPE> + 'clone>where SCOPE: Scope + Clone,

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone, SCOPE> Clone for Box<dyn ProviderExtDeviceAuthorizationGrant<Scope = SCOPE> + Send + 'clone>where SCOPE: Scope + Clone,

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone, SCOPE> Clone for Box<dyn ProviderExtDeviceAuthorizationGrant<Scope = SCOPE> + Send + Sync + 'clone>where SCOPE: Scope + Clone,

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone, SCOPE> Clone for Box<dyn ProviderExtDeviceAuthorizationGrant<Scope = SCOPE> + Sync + 'clone>where SCOPE: Scope + Clone,

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<SCOPE> Debug for dyn ProviderExtDeviceAuthorizationGrant<Scope = SCOPE> + Send + Syncwhere SCOPE: Scope,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§