fusionauth_rust_client/models/
device_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DeviceResponse {
17 #[serde(rename = "device_code", skip_serializing_if = "Option::is_none")]
18 pub device_code: Option<String>,
19 #[serde(rename = "expires_in", skip_serializing_if = "Option::is_none")]
20 pub expires_in: Option<i32>,
21 #[serde(rename = "interval", skip_serializing_if = "Option::is_none")]
22 pub interval: Option<i32>,
23 #[serde(rename = "user_code", skip_serializing_if = "Option::is_none")]
24 pub user_code: Option<String>,
25 #[serde(rename = "verification_uri", skip_serializing_if = "Option::is_none")]
26 pub verification_uri: Option<String>,
27 #[serde(rename = "verification_uri_complete", skip_serializing_if = "Option::is_none")]
28 pub verification_uri_complete: Option<String>,
29}
30
31impl DeviceResponse {
32 pub fn new() -> DeviceResponse {
34 DeviceResponse {
35 device_code: None,
36 expires_in: None,
37 interval: None,
38 user_code: None,
39 verification_uri: None,
40 verification_uri_complete: None,
41 }
42 }
43}
44