pub struct OAuthTokenDeviceCodeRequestBody {
pub device_code: String,
pub grant_type: OAuthTokenDeviceCodeRequestBodyGrantType,
}Expand description
Request body for the urn:ietf:params:oauth:grant-type:device_code grant type (RFC 8628). Used by CLI clients to poll for authorization.
JSON schema
{
"title": "OAuthTokenDeviceCodeRequestBody",
"description": "Request body for the
urn:ietf:params:oauth:grant-type:device_code grant type (RFC 8628). Used
by CLI clients to poll for authorization.",
"type": "object",
"required": [
"device_code",
"grant_type"
],
"properties": {
"device_code": {
"description": "The device code received from the device
authorization endpoint.",
"type": "string"
},
"grant_type": {
"type": "string",
"enum": [
"urn:ietf:params:oauth:grant-type:device_code"
]
}
},
"x-stainless-model": "client_auth.oauth_token_device_code_request_body"
}Fields§
§device_code: StringThe device code received from the device authorization endpoint.
grant_type: OAuthTokenDeviceCodeRequestBodyGrantTypeTrait Implementations§
Source§impl Clone for OAuthTokenDeviceCodeRequestBody
impl Clone for OAuthTokenDeviceCodeRequestBody
Source§fn clone(&self) -> OAuthTokenDeviceCodeRequestBody
fn clone(&self) -> OAuthTokenDeviceCodeRequestBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for OAuthTokenDeviceCodeRequestBody
impl<'de> Deserialize<'de> for OAuthTokenDeviceCodeRequestBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&OAuthTokenDeviceCodeRequestBody> for OAuthTokenDeviceCodeRequestBody
impl From<&OAuthTokenDeviceCodeRequestBody> for OAuthTokenDeviceCodeRequestBody
Source§fn from(value: &OAuthTokenDeviceCodeRequestBody) -> Self
fn from(value: &OAuthTokenDeviceCodeRequestBody) -> Self
Converts to this type from the input type.
Source§impl From<OAuthTokenDeviceCodeRequestBody> for OAuthTokenRequestBody
impl From<OAuthTokenDeviceCodeRequestBody> for OAuthTokenRequestBody
Source§fn from(value: OAuthTokenDeviceCodeRequestBody) -> Self
fn from(value: OAuthTokenDeviceCodeRequestBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OAuthTokenDeviceCodeRequestBody
impl RefUnwindSafe for OAuthTokenDeviceCodeRequestBody
impl Send for OAuthTokenDeviceCodeRequestBody
impl Sync for OAuthTokenDeviceCodeRequestBody
impl Unpin for OAuthTokenDeviceCodeRequestBody
impl UnsafeUnpin for OAuthTokenDeviceCodeRequestBody
impl UnwindSafe for OAuthTokenDeviceCodeRequestBody
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