pub struct DeviceVerifyRequestBody {
pub action: DeviceVerifyAction,
pub user_code: String,
}Expand description
Request body for approving or denying a device authorization request. The user must be authenticated and belong to the target app.
JSON schema
{
"title": "DeviceVerifyRequestBody",
"description": "Request body for approving or denying a device
authorization request. The user must be authenticated and belong to the
target app.",
"type": "object",
"required": [
"action",
"user_code"
],
"properties": {
"action": {
"$ref": "#/components/schemas/DeviceVerifyAction"
},
"user_code": {
"description": "The user code displayed on the CLI device.",
"type": "string"
}
},
"x-stainless-model": "client_auth.device_verify_request_body"
}Fields§
§action: DeviceVerifyAction§user_code: StringThe user code displayed on the CLI device.
Trait Implementations§
Source§impl Clone for DeviceVerifyRequestBody
impl Clone for DeviceVerifyRequestBody
Source§fn clone(&self) -> DeviceVerifyRequestBody
fn clone(&self) -> DeviceVerifyRequestBody
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 Debug for DeviceVerifyRequestBody
impl Debug for DeviceVerifyRequestBody
Source§impl<'de> Deserialize<'de> for DeviceVerifyRequestBody
impl<'de> Deserialize<'de> for DeviceVerifyRequestBody
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<&DeviceVerifyRequestBody> for DeviceVerifyRequestBody
impl From<&DeviceVerifyRequestBody> for DeviceVerifyRequestBody
Source§fn from(value: &DeviceVerifyRequestBody) -> Self
fn from(value: &DeviceVerifyRequestBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeviceVerifyRequestBody
impl RefUnwindSafe for DeviceVerifyRequestBody
impl Send for DeviceVerifyRequestBody
impl Sync for DeviceVerifyRequestBody
impl Unpin for DeviceVerifyRequestBody
impl UnsafeUnpin for DeviceVerifyRequestBody
impl UnwindSafe for DeviceVerifyRequestBody
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