internetdata 2.10.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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ProxyDetail {
    /// The proxy pool's ID in its catalog, empty where unattributed.
    #[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
    pub provider: Option<String>,
    /// The name the catalog gives it.
    #[serde(rename = "provider_name", skip_serializing_if = "Option::is_none")]
    pub provider_name: Option<String>,
    /// The first day of the window the address was seen as an exit.
    #[serde(rename = "first_seen", skip_serializing_if = "Option::is_none")]
    pub first_seen: Option<String>,
    /// The last day it was.
    #[serde(rename = "last_seen", skip_serializing_if = "Option::is_none")]
    pub last_seen: Option<String>,
    /// How many times it was seen in the window.
    #[serde(rename = "hits", skip_serializing_if = "Option::is_none")]
    pub hits: Option<i32>,
    /// On what share of the window's days, in percent.
    #[serde(rename = "hits_days_pct", skip_serializing_if = "Option::is_none")]
    pub hits_days_pct: Option<i32>,
    /// How many pools it was seen in.
    #[serde(rename = "providers_num", skip_serializing_if = "Option::is_none")]
    pub providers_num: Option<i32>,
}

impl ProxyDetail {
    pub fn new() -> ProxyDetail {
        ProxyDetail {
            provider: None,
            provider_name: None,
            first_seen: None,
            last_seen: None,
            hits: None,
            hits_days_pct: None,
            providers_num: None,
        }
    }
}