#[non_exhaustive]pub struct Row {Show 13 fields
pub proxy_type: Option<String>,
pub country_short: Option<String>,
pub country_long: Option<String>,
pub region: Option<String>,
pub city: Option<String>,
pub isp: Option<String>,
pub domain: Option<String>,
pub usage_type: Option<String>,
pub asn: Option<String>,
pub as_name: Option<String>,
pub last_seen: Option<String>,
pub threat: Option<String>,
pub provider: Option<String>,
}
Expand description
Database record for an IP address.
Use Database::query()
to obtain this
from a database.
By convention, -
is used for fields where the column is supported but
the cell does not have a value.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.proxy_type: Option<String>
Type of proxy, if any.
Proxy type | Description |
---|---|
VPN | Anonymizing VPN service |
TOR | Tor exit node |
DCH | Data center, hosting provider, CDN |
PUB | Public proxy |
WEB | Web based proxy |
SES | Search engine spider |
RES | Residential proxies. Only available with PX10 & PX11 |
country_short: Option<String>
ISO 3166 country code like US
.
country_long: Option<String>
ISO 3166 country name like United States of America
.
region: Option<String>
Region or state name like California
.
city: Option<String>
City name like Los Angeles
.
isp: Option<String>
Internet service provider or company name, like
APNIC and CloudFlare DNS Resolver Project
.
domain: Option<String>
Domain name associated with the IP address, if any,
like cloudflare.com
.
usage_type: Option<String>
Usage type classification.
Usage type | Description |
---|---|
COM | Commercial |
ORG | Organization |
GOV | Government |
MIL | Military |
EDU | University, college, school |
LIB | Library |
CDN | Content Delivery Network |
ISP | Fixed Line ISP |
MOB | Mobile ISP |
DCH | Data center, hosting provider, transit |
SES | Search engine spider |
RSV | Reserved |
asn: Option<String>
Autonomous System Number (ASN), like 13335
.
as_name: Option<String>
Autonomous System (AS) name, like CLOUDFLARENET
.
last_seen: Option<String>
Number of days since the proxy was last seen.
threat: Option<String>
Security threat reported.
Threat type | Description |
---|---|
SPAM | Email and forum spammers |
SCANNER | Network security scanners |
BOTNET | Malware infected devices |
provider: Option<String>
Name of VPN provider if available.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Row
impl<'de> Deserialize<'de> for Row
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more