pub struct ProxyRecord<'a> {Show 14 fields
pub ip: IpAddr,
pub country: Option<Country<'a>>,
pub region: Option<Cow<'a, str>>,
pub city: Option<Cow<'a, str>>,
pub isp: Option<Cow<'a, str>>,
pub domain: Option<Cow<'a, str>>,
pub is_proxy: Option<Proxy>,
pub proxy_type: Option<Cow<'a, str>>,
pub asn: Option<Cow<'a, str>>,
pub as_: Option<Cow<'a, str>>,
pub last_seen: Option<Cow<'a, str>>,
pub threat: Option<Cow<'a, str>>,
pub provider: Option<Cow<'a, str>>,
pub usage_type: Option<Cow<'a, str>>,
}Expand description
Proxy detection record returned by an IP2Proxy database lookup.
Which fields are populated depends on the database type (PX1–PX11).
Unpopulated fields are None and omitted during JSON serialisation.
String fields borrow from the memory-mapped file (zero-copy).
Fields§
§ip: IpAddr§country: Option<Country<'a>>§region: Option<Cow<'a, str>>§city: Option<Cow<'a, str>>§isp: Option<Cow<'a, str>>§domain: Option<Cow<'a, str>>§is_proxy: Option<Proxy>§proxy_type: Option<Cow<'a, str>>§asn: Option<Cow<'a, str>>§as_: Option<Cow<'a, str>>§last_seen: Option<Cow<'a, str>>§threat: Option<Cow<'a, str>>§provider: Option<Cow<'a, str>>§usage_type: Option<Cow<'a, str>>Implementations§
Trait Implementations§
Source§impl<'a> Clone for ProxyRecord<'a>
impl<'a> Clone for ProxyRecord<'a>
Source§fn clone(&self) -> ProxyRecord<'a>
fn clone(&self) -> ProxyRecord<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ProxyRecord<'a>
impl<'a> Debug for ProxyRecord<'a>
Source§impl Default for ProxyRecord<'_>
impl Default for ProxyRecord<'_>
Source§impl<'a> PartialEq for ProxyRecord<'a>
impl<'a> PartialEq for ProxyRecord<'a>
Source§impl<'a> Serialize for ProxyRecord<'a>
impl<'a> Serialize for ProxyRecord<'a>
impl<'a> StructuralPartialEq for ProxyRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProxyRecord<'a>
impl<'a> RefUnwindSafe for ProxyRecord<'a>
impl<'a> Send for ProxyRecord<'a>
impl<'a> Sync for ProxyRecord<'a>
impl<'a> Unpin for ProxyRecord<'a>
impl<'a> UnwindSafe for ProxyRecord<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more