pub struct IPv4Analysis {
pub ip_addr: Ipv4Addr,
pub subnet_24: Ipv4Addr,
pub subnet_16: Ipv4Addr,
pub subnet_8: Ipv4Addr,
pub asn: Option<u32>,
pub country: Option<String>,
pub is_hosting_provider: bool,
pub is_vpn_provider: bool,
pub reputation_score: f64,
}Expand description
Analysis of an IPv4 address for diversity enforcement
Fields§
§ip_addr: Ipv4AddrThe exact IPv4 address
subnet_24: Ipv4Addr/24 subnet (Class C equivalent)
subnet_16: Ipv4Addr/16 subnet (Class B equivalent)
subnet_8: Ipv4Addr/8 subnet (Class A equivalent)
asn: Option<u32>Autonomous System Number (if available)
country: Option<String>Country code from GeoIP lookup
is_hosting_provider: boolWhether this is a known hosting/VPS provider
is_vpn_provider: boolWhether this is a known VPN provider
reputation_score: f64Historical reputation score for this IP range
Trait Implementations§
Source§impl Clone for IPv4Analysis
impl Clone for IPv4Analysis
Source§fn clone(&self) -> IPv4Analysis
fn clone(&self) -> IPv4Analysis
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 Debug for IPv4Analysis
impl Debug for IPv4Analysis
Source§impl<'de> Deserialize<'de> for IPv4Analysis
impl<'de> Deserialize<'de> for IPv4Analysis
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
Auto Trait Implementations§
impl Freeze for IPv4Analysis
impl RefUnwindSafe for IPv4Analysis
impl Send for IPv4Analysis
impl Sync for IPv4Analysis
impl Unpin for IPv4Analysis
impl UnwindSafe for IPv4Analysis
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