pub struct OAuthStartInfo {
pub provider: String,
pub url: String,
pub verifier: String,
pub instructions: Option<String>,
pub redirect_uri: Option<String>,
pub callback_server: Option<OAuthCallbackServer>,
}Fields§
§provider: String§url: String§verifier: String§instructions: Option<String>§redirect_uri: Option<String>The redirect URI used in the authorization request. When this points to localhost, a local callback server should be started.
callback_server: Option<OAuthCallbackServer>Pre-bound callback server (already listening).
When a provider binds a random-port localhost listener at start time
(e.g. GitHub Copilot, GitLab), the server is stored here so the caller
does not need to bind a second time. If Some, the caller should use
this server directly instead of calling start_oauth_callback_server.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OAuthStartInfo
impl !RefUnwindSafe for OAuthStartInfo
impl Send for OAuthStartInfo
impl !Sync for OAuthStartInfo
impl Unpin for OAuthStartInfo
impl UnsafeUnpin for OAuthStartInfo
impl !UnwindSafe for OAuthStartInfo
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more