pub struct IPAnalysis {
pub subnet_64: Ipv6Addr,
pub subnet_48: Ipv6Addr,
pub subnet_32: Ipv6Addr,
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 IPv6 address for diversity enforcement
Fields§
§subnet_64: Ipv6Addr
/64 subnet (host allocation)
subnet_48: Ipv6Addr
/48 subnet (site allocation)
subnet_32: Ipv6Addr
/32 subnet (ISP allocation)
asn: Option<u32>
Autonomous System Number (if available)
country: Option<String>
Country code from GeoIP lookup
is_hosting_provider: bool
Whether this is a known hosting/VPS provider
is_vpn_provider: bool
Whether this is a known VPN provider
reputation_score: f64
Historical reputation score for this IP range
Trait Implementations§
Source§impl Clone for IPAnalysis
impl Clone for IPAnalysis
Source§fn clone(&self) -> IPAnalysis
fn clone(&self) -> IPAnalysis
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IPAnalysis
impl Debug for IPAnalysis
Source§impl<'de> Deserialize<'de> for IPAnalysis
impl<'de> Deserialize<'de> for IPAnalysis
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 IPAnalysis
impl RefUnwindSafe for IPAnalysis
impl Send for IPAnalysis
impl Sync for IPAnalysis
impl Unpin for IPAnalysis
impl UnwindSafe for IPAnalysis
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