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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* InternetData API
*
* The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
*
* The version of the OpenAPI document: 2026.11.13
* Contact: support@internetdata.io
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// AbuseContact : Where to report abuse, from IP Abuse Contact.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AbuseContact {
/// Where to report abuse from the address.
#[serde(rename = "email")]
pub email: String,
/// The contact. Paid plans and the trial.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// Its phone number. Paid plans and the trial.
#[serde(rename = "phone", skip_serializing_if = "Option::is_none")]
pub phone: Option<String>,
/// Its postal address. Paid plans and the trial.
#[serde(rename = "address", skip_serializing_if = "Option::is_none")]
pub address: Option<String>,
/// ISO 3166 country code. Paid plans and the trial.
#[serde(rename = "country", skip_serializing_if = "Option::is_none")]
pub country: Option<String>,
/// The registry block it was derived from. Paid plans and the trial.
#[serde(rename = "network", skip_serializing_if = "Option::is_none")]
pub network: Option<String>,
/// ARIN reports the contact answered its yearly validation. Paid plans and the trial.
#[serde(rename = "validated", skip_serializing_if = "Option::is_none")]
pub validated: Option<bool>,
/// Since when it has not. Paid plans and the trial.
#[serde(rename = "unvalidated_since", skip_serializing_if = "Option::is_none")]
pub unvalidated_since: Option<String>,
}
impl AbuseContact {
/// Where to report abuse, from IP Abuse Contact.
pub fn new(email: String) -> AbuseContact {
AbuseContact {
email,
name: None,
phone: None,
address: None,
country: None,
network: None,
validated: None,
unvalidated_since: None,
}
}
}