internetdata 2.9.0

The official Rust client library for the InternetData API: look up IP addresses, AS numbers and domains, and download the IP intelligence databases.
Documentation
/*
 * 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 }
    }
}