Struct oauth2_client::authorization_code_grant::flow::Flow
source · [−]pub struct Flow<C> where
C: Client, {
pub client_with_token: C,
}
Fields
client_with_token: C
Implementations
sourceimpl<C> Flow<C> where
C: Client + Send + Sync,
impl<C> Flow<C> where
C: Client + Send + Sync,
pub async fn handle_callback_by_query<SCOPE>(
&self,
provider: &(dyn ProviderExtAuthorizationCodeGrant<Scope = SCOPE> + Send + Sync),
query: impl AsRef<str>,
config: impl Into<Option<FlowHandleCallbackByQueryConfiguration>>
) -> Result<AT_RES_SuccessfulBody<SCOPE>, FlowHandleCallbackError> where
SCOPE: Scope + Serialize + DeserializeOwned + Send + Sync,
pub async fn handle_callback<SCOPE>(
&self,
provider: &(dyn ProviderExtAuthorizationCodeGrant<Scope = SCOPE> + Send + Sync),
code: Code,
config: impl Into<Option<FlowHandleCallbackConfiguration>>
) -> Result<AT_RES_SuccessfulBody<SCOPE>, FlowHandleCallbackError> where
SCOPE: Scope + Serialize + DeserializeOwned + Send + Sync,
Trait Implementations
Auto Trait Implementations
impl<C> RefUnwindSafe for Flow<C> where
C: RefUnwindSafe,
impl<C> Send for Flow<C> where
C: Send,
impl<C> Sync for Flow<C> where
C: Sync,
impl<C> Unpin for Flow<C> where
C: Unpin,
impl<C> UnwindSafe for Flow<C> where
C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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