Struct ip2location::ProxyRecord
source · 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>>,
}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 copy 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§fn eq(&self, other: &ProxyRecord<'a>) -> bool
fn eq(&self, other: &ProxyRecord<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a> Serialize for ProxyRecord<'a>
impl<'a> Serialize for ProxyRecord<'a>
impl<'a> StructuralPartialEq for ProxyRecord<'a>
Auto Trait Implementations§
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