Struct mas_storage::oauth2::OAuth2DeviceCodeGrantParams
source · pub struct OAuth2DeviceCodeGrantParams<'a> {
pub client: &'a Client,
pub scope: Scope,
pub device_code: String,
pub user_code: String,
pub expires_in: Duration,
pub ip_address: Option<IpAddr>,
pub user_agent: Option<UserAgent>,
}
Expand description
Parameters used to create a new DeviceCodeGrant
Fields§
§client: &'a Client
The client which requested the device code grant
scope: Scope
The scope requested by the client
device_code: String
The device code which the client uses to poll for authorisation
user_code: String
The user code which the client uses to display to the user
expires_in: Duration
After how long the device code expires
ip_address: Option<IpAddr>
IP address from which the request was made
user_agent: Option<UserAgent>
The user agent from which the request was made
Auto Trait Implementations§
impl<'a> Freeze for OAuth2DeviceCodeGrantParams<'a>
impl<'a> RefUnwindSafe for OAuth2DeviceCodeGrantParams<'a>
impl<'a> Send for OAuth2DeviceCodeGrantParams<'a>
impl<'a> Sync for OAuth2DeviceCodeGrantParams<'a>
impl<'a> Unpin for OAuth2DeviceCodeGrantParams<'a>
impl<'a> UnwindSafe for OAuth2DeviceCodeGrantParams<'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
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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