pub struct ExternalAuth<'a, T> { /* private fields */ }Expand description
Request an access token for currently supported providers.
Implementations§
Source§impl<'a, T> ExternalAuth<'a, T>
impl<'a, T> ExternalAuth<'a, T>
pub const fn email(self, email: &'a str) -> Self
pub const fn expired_at(self, expired_at: u64) -> Self
pub const fn terms_agreed(self, terms_agreed: bool) -> Self
Trait Implementations§
Source§impl<T: Serialize + Provider> IntoFuture for ExternalAuth<'_, T>
impl<T: Serialize + Provider> IntoFuture for ExternalAuth<'_, T>
Source§type Output = Result<Response<AccessToken>, Error>
type Output = Result<Response<AccessToken>, Error>
The output that the future will produce on completion.
Source§type IntoFuture = ResponseFuture<AccessToken>
type IntoFuture = ResponseFuture<AccessToken>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a, T> Freeze for ExternalAuth<'a, T>where
T: Freeze,
impl<'a, T> !RefUnwindSafe for ExternalAuth<'a, T>
impl<'a, T> Send for ExternalAuth<'a, T>where
T: Send,
impl<'a, T> Sync for ExternalAuth<'a, T>where
T: Sync,
impl<'a, T> Unpin for ExternalAuth<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for ExternalAuth<'a, T>
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
Source§impl<Builder, Data> DataFromRequest<Data> for Builderwhere
Builder: IntoFuture<IntoFuture = ResponseFuture<Data>> + Sealed,
Data: DeserializeOwned + Unpin,
impl<Builder, Data> DataFromRequest<Data> for Builderwhere
Builder: IntoFuture<IntoFuture = ResponseFuture<Data>> + Sealed,
Data: DeserializeOwned + Unpin,
§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>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn compression(self) -> Compression<Self>where
Self: Sized,
fn compression(self) -> Compression<Self>where
Self: Sized,
Compresses response bodies. Read more
§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Decompress response bodies. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more