ripestat_common/resources/
historical_whois.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
4pub struct HistoricalWhoisRequest {
5 pub resource: String,
6 pub version: Option<String>,
7}
8
9#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
10pub struct HistoricalWhoisResponse {
11 pub terms_and_conditions: String,
12 pub num_versions: i64,
13 pub resource: String,
14 #[serde(rename = "type")]
15 pub whois_type: String,
16 pub database: String,
17 pub access: String,
18 pub suggestions: Vec<WhoisSuggestion>,
19 pub version: String,
20 pub cache: Option<bool>,
21}
22
23#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
24pub struct WhoisSuggestion {
25 #[serde(rename = "type")]
26 pub suggestion_type: String,
27 pub key: String,
28 pub attributes: Vec<Attribute>,
29 pub from_time: Option<String>,
30 pub version: String,
31 pub latest: bool,
32 pub deleted: bool,
33}
34
35#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
36pub struct Attribute {
37 pub attribute: String,
38 pub value: String,
39}