pub struct AuthFlowContext<'a> {
pub config: &'a Config,
pub auth_service: &'a AuthService,
pub client: &'a Client,
}Expand description
Shared context for auth-flow trait methods. Carries the runtime dependencies each flow needs (config for OAuth client creds, auth service for token storage, http client for OAuth round-trips).
Fields§
§config: &'a Config§auth_service: &'a AuthService§client: &'a ClientAuto Trait Implementations§
impl<'a> Freeze for AuthFlowContext<'a>
impl<'a> !RefUnwindSafe for AuthFlowContext<'a>
impl<'a> Send for AuthFlowContext<'a>
impl<'a> Sync for AuthFlowContext<'a>
impl<'a> Unpin for AuthFlowContext<'a>
impl<'a> UnsafeUnpin for AuthFlowContext<'a>
impl<'a> !UnwindSafe for AuthFlowContext<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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