pub enum InstalledFlowReturnMethod {
Interactive,
HTTPRedirect,
HTTPPortRedirect(u16),
}
Expand description
Method by which the user agent return token to this application.
cf. https://developers.google.com/identity/protocols/OAuth2InstalledApp#choosingredirecturi
Variants§
Interactive
Involves showing a URL to the user and asking to copy a code from their browser (default)
HTTPRedirect
Involves spinning up a local HTTP server and Google redirecting the browser to the server with a URL containing the code (preferred, but not as reliable).
HTTPPortRedirect(u16)
Identical to Self::HTTPRedirect, but allows a port to be specified for the server, instead of choosing a port randomly.
Auto Trait Implementations§
impl Freeze for InstalledFlowReturnMethod
impl RefUnwindSafe for InstalledFlowReturnMethod
impl Send for InstalledFlowReturnMethod
impl Sync for InstalledFlowReturnMethod
impl Unpin for InstalledFlowReturnMethod
impl UnwindSafe for InstalledFlowReturnMethod
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more