Struct ip2location_ip2proxy::record::Record
source · [−]pub struct Record {Show 16 fields
pub ip_from: IpAddr,
pub ip_to: IpAddr,
pub proxy_type: Option<ProxyType>,
pub country_code: RecordValue,
pub country_name: Option<RecordValue>,
pub region_name: Option<RecordValue>,
pub city_name: Option<RecordValue>,
pub isp: Option<RecordValue>,
pub domain: Option<RecordValue>,
pub usage_type: Option<UsageType>,
pub asn: Option<RecordValue>,
pub as_name: Option<RecordValue>,
pub last_seen: Option<RecordValue>,
pub threat: Option<RecordValue>,
pub provider: Option<RecordValue>,
pub residential: Option<RecordValue>,
}Fields
ip_from: IpAddrip_to: IpAddrproxy_type: Option<ProxyType>country_code: RecordValuecountry_name: Option<RecordValue>region_name: Option<RecordValue>city_name: Option<RecordValue>isp: Option<RecordValue>domain: Option<RecordValue>usage_type: Option<UsageType>asn: Option<RecordValue>as_name: Option<RecordValue>last_seen: Option<RecordValue>threat: Option<RecordValue>provider: Option<RecordValue>residential: Option<RecordValue>Trait Implementations
sourceimpl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more