internetdata 2.12.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.15
 * 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 PubproxyDetail {
    /// A public proxy listens here.
    #[serde(rename = "entry", skip_serializing_if = "Option::is_none")]
    pub entry: Option<bool>,
    /// Public proxies' traffic leaves from here.
    #[serde(rename = "exit", skip_serializing_if = "Option::is_none")]
    pub exit: Option<bool>,
    /// The protocols at either end, `[]` when unknown.
    #[serde(rename = "protocols", skip_serializing_if = "Option::is_none")]
    pub protocols: Option<Vec<String>>,
    /// How many ports a proxy listens on here.
    #[serde(rename = "num_ports", skip_serializing_if = "Option::is_none")]
    pub num_ports: Option<i32>,
    /// How many proxies' traffic left from here.
    #[serde(rename = "num_proxies", skip_serializing_if = "Option::is_none")]
    pub num_proxies: Option<i32>,
    /// The last day one was seen.
    #[serde(rename = "last_seen", skip_serializing_if = "Option::is_none")]
    pub last_seen: Option<String>,
    /// The last day one answered a request, empty when none did.
    #[serde(rename = "last_usable", skip_serializing_if = "Option::is_none")]
    pub last_usable: Option<String>,
}

impl PubproxyDetail {
    pub fn new() -> PubproxyDetail {
        PubproxyDetail {
            entry: None,
            exit: None,
            protocols: None,
            num_ports: None,
            num_proxies: None,
            last_seen: None,
            last_usable: None,
        }
    }
}