pub struct OAuthOptions {
pub transport: Arc<dyn Transport>,
pub callback_port: Option<u16>,
}Expand description
How an OAuth handler reaches its provider: the transport, and the port a browser login’s callback server listens
on instead of the registered one (Some(0): any free port; tests).
Fields§
§transport: Arc<dyn Transport>§callback_port: Option<u16>Implementations§
Source§impl OAuthOptions
impl OAuthOptions
Sourcepub fn for_env(env: &Env) -> OAuthOptions
pub fn for_env(env: &Env) -> OAuthOptions
The options of a run in env: its proxies (HTTP_PROXY, HTTPS_PROXY, NO_PROXY) reach the providers.
Trait Implementations§
Source§impl Clone for OAuthOptions
impl Clone for OAuthOptions
Auto Trait Implementations§
impl !RefUnwindSafe for OAuthOptions
impl !UnwindSafe for OAuthOptions
impl Forget for OAuthOptions
impl Freeze for OAuthOptions
impl Move for OAuthOptions
impl Send for OAuthOptions
impl Sync for OAuthOptions
impl Unpin for OAuthOptions
impl UnsafeUnpin for OAuthOptions
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