fusionauth_rust_client/models/
device_info.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DeviceInfo {
17 #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
18 pub description: Option<String>,
19 #[serde(rename = "lastAccessedAddress", skip_serializing_if = "Option::is_none")]
20 pub last_accessed_address: Option<String>,
21 #[serde(rename = "lastAccessedInstant", skip_serializing_if = "Option::is_none")]
23 pub last_accessed_instant: Option<i64>,
24 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
25 pub name: Option<String>,
26 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
27 pub r#type: Option<String>,
28}
29
30impl DeviceInfo {
31 pub fn new() -> DeviceInfo {
33 DeviceInfo {
34 description: None,
35 last_accessed_address: None,
36 last_accessed_instant: None,
37 name: None,
38 r#type: None,
39 }
40 }
41}
42