pub struct IPInfo {
pub ip: String,
pub isp: Option<ISPInfo>,
pub location: Option<LocationInfo>,
pub risk: Option<RiskInfo>,
}
Expand description
Represents the full set of information returned by the API for an IP address.
Fields§
§ip: String
The queried IP address.
isp: Option<ISPInfo>
Information about the ISP.
location: Option<LocationInfo>
Information about the location.
risk: Option<RiskInfo>
Information about the risk level.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IPInfo
impl<'de> Deserialize<'de> for IPInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IPInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IPInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for IPInfo
impl Serialize for IPInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for IPInfo
Auto Trait Implementations§
impl Freeze for IPInfo
impl RefUnwindSafe for IPInfo
impl Send for IPInfo
impl Sync for IPInfo
impl Unpin for IPInfo
impl UnwindSafe for IPInfo
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