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<OAuthTokenDeviceCodeRequestBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OAuthTokenDeviceCodeRequestBody, <__D as Deserializer<'de>>::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,
) -> OAuthTokenDeviceCodeRequestBody
fn from( value: &OAuthTokenDeviceCodeRequestBody, ) -> OAuthTokenDeviceCodeRequestBody
Converts to this type from the input type.
Source§impl From<OAuthTokenDeviceCodeRequestBody> for OAuthTokenRequestBody
impl From<OAuthTokenDeviceCodeRequestBody> for OAuthTokenRequestBody
Source§fn from(value: OAuthTokenDeviceCodeRequestBody) -> OAuthTokenRequestBody
fn from(value: OAuthTokenDeviceCodeRequestBody) -> OAuthTokenRequestBody
Converts to this type from the input type.
Source§impl Serialize for OAuthTokenDeviceCodeRequestBody
impl Serialize for OAuthTokenDeviceCodeRequestBody
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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