Struct ip2proxy::Row

source ·
#[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 typeDescription
VPNAnonymizing VPN service
TORTor exit node
DCHData center, hosting provider, CDN
PUBPublic proxy
WEBWeb based proxy
SESSearch engine spider
RESResidential 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 typeDescription
COMCommercial
ORGOrganization
GOVGovernment
MILMilitary
EDUUniversity, college, school
LIBLibrary
CDNContent Delivery Network
ISPFixed Line ISP
MOBMobile ISP
DCHData center, hosting provider, transit
SESSearch engine spider
RSVReserved
§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 typeDescription
SPAMEmail and forum spammers
SCANNERNetwork security scanners
BOTNETMalware infected devices
§provider: Option<String>

Name of VPN provider if available.

Implementations§

Checks if the row represents a known proxy of any kind.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.