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
/*
* 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};
/// Rwhois : IP RWHOIS's most specific network covering the address. Paid plans and the trial.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Rwhois {
/// The network's identifier on the operator's RWHOIS server.
#[serde(rename = "id")]
pub id: String,
/// Its assignee.
#[serde(rename = "name")]
pub name: String,
/// ISO 3166 country code.
#[serde(rename = "country")]
pub country: String,
/// The operator that published it.
#[serde(rename = "source")]
pub source: String,
/// The contact emails' domain.
#[serde(rename = "domain")]
pub domain: String,
/// Its abuse contact.
#[serde(rename = "abuse_email")]
pub abuse_email: String,
}
impl Rwhois {
/// IP RWHOIS's most specific network covering the address. Paid plans and the trial.
pub fn new(
id: String,
name: String,
country: String,
source: String,
domain: String,
abuse_email: String,
) -> Rwhois {
Rwhois { id, name, country, source, domain, abuse_email }
}
}