Struct oauth2_client::device_authorization_grant::flow::Flow [−][src]
pub struct Flow<C1, C2> where
C1: Client,
C2: RetryableClient, {
pub client_with_auth: C1,
pub client_with_token: C2,
}
Fields
client_with_auth: C1
client_with_token: C2
Implementations
pub async fn execute<SCOPE, UI>(
&self,
provider: &(dyn ProviderExtDeviceAuthorizationGrant<Scope = SCOPE> + Send + Sync),
scopes: impl Into<Option<Vec<SCOPE>>>,
user_interaction: UI
) -> Result<DAT_RES_SuccessfulBody<SCOPE>, FlowExecuteError> where
SCOPE: Scope + Serialize + DeserializeOwned + Send + Sync,
UI: FnOnce(UserCode, VerificationUri, Option<VerificationUriComplete>),
Trait Implementations
Auto Trait Implementations
impl<C1, C2> RefUnwindSafe for Flow<C1, C2> where
C1: RefUnwindSafe,
C2: RefUnwindSafe,
impl<C1, C2> UnwindSafe for Flow<C1, C2> where
C1: UnwindSafe,
C2: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more