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.17
* 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,
}
}
}