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
50
51
/*
* 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.14
* 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,
}
}
}