fusionauth_rust_client/models/
event_info.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EventInfo {
17 #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
18 pub data: Option<std::collections::HashMap<String, serde_json::Value>>,
19 #[serde(rename = "deviceDescription", skip_serializing_if = "Option::is_none")]
20 pub device_description: Option<String>,
21 #[serde(rename = "deviceName", skip_serializing_if = "Option::is_none")]
22 pub device_name: Option<String>,
23 #[serde(rename = "deviceType", skip_serializing_if = "Option::is_none")]
24 pub device_type: Option<String>,
25 #[serde(rename = "ipAddress", skip_serializing_if = "Option::is_none")]
26 pub ip_address: Option<String>,
27 #[serde(rename = "location", skip_serializing_if = "Option::is_none")]
28 pub location: Option<Box<models::Location>>,
29 #[serde(rename = "os", skip_serializing_if = "Option::is_none")]
30 pub os: Option<String>,
31 #[serde(rename = "userAgent", skip_serializing_if = "Option::is_none")]
32 pub user_agent: Option<String>,
33}
34
35impl EventInfo {
36 pub fn new() -> EventInfo {
38 EventInfo {
39 data: None,
40 device_description: None,
41 device_name: None,
42 device_type: None,
43 ip_address: None,
44 location: None,
45 os: None,
46 user_agent: None,
47 }
48 }
49}
50