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};

/// 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,
        }
    }
}