[−][src]Struct yup_oauth2::InstalledFlow
InstalledFlowImpl provides tokens for services that follow the "Installed" OAuth flow. (See https://www.oauth.com/oauth2-servers/authorization/, https://developers.google.com/identity/protocols/OAuth2InstalledApp).
Methods
impl InstalledFlow<DefaultFlowDelegate>
[src]
pub fn new(
secret: ApplicationSecret,
method: InstalledFlowReturnMethod
) -> InstalledFlow<DefaultFlowDelegate>
[src]
secret: ApplicationSecret,
method: InstalledFlowReturnMethod
) -> InstalledFlow<DefaultFlowDelegate>
Create a new InstalledFlow with the provided secret and method.
impl<FD> InstalledFlow<FD> where
FD: FlowDelegate,
[src]
FD: FlowDelegate,
pub fn delegate<NewFD: FlowDelegate>(
self,
delegate: NewFD
) -> InstalledFlow<NewFD>
[src]
self,
delegate: NewFD
) -> InstalledFlow<NewFD>
Use the provided FlowDelegate.
Trait Implementations
impl<FD, C> AuthFlow<C> for InstalledFlow<FD> where
FD: FlowDelegate + Send + 'static,
C: Connect + 'static,
[src]
FD: FlowDelegate + Send + 'static,
C: Connect + 'static,
type TokenGetter = InstalledFlowImpl<FD, C>
fn build_token_getter(self, client: Client<C>) -> Self::TokenGetter
[src]
Auto Trait Implementations
impl<FD> Send for InstalledFlow<FD> where
FD: Send,
FD: Send,
impl<FD> Unpin for InstalledFlow<FD> where
FD: Unpin,
FD: Unpin,
impl<FD> Sync for InstalledFlow<FD> where
FD: Sync,
FD: Sync,
impl<FD> UnwindSafe for InstalledFlow<FD> where
FD: UnwindSafe,
FD: UnwindSafe,
impl<FD> RefUnwindSafe for InstalledFlow<FD> where
FD: RefUnwindSafe,
FD: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,