1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#[allow(unused_imports)]
use serde_json::Value;
#[derive(Debug, Serialize, Deserialize)]
pub struct AnswerMetadata {
#[serde(rename = "operating_system")]
pub operating_system: Option<String>,
#[serde(rename = "ip_address")]
pub ip_address: Option<String>,
#[serde(rename = "browser")]
pub browser: Option<String>,
}
impl AnswerMetadata {
pub fn new() -> AnswerMetadata {
AnswerMetadata {
operating_system: None,
ip_address: None,
browser: None,
}
}
}