pub struct Asn<'a> {
pub autonomous_system_number: Option<u32>,
pub autonomous_system_organization: Option<&'a str>,
}Expand description
GeoLite2 ASN database record.
Contains Autonomous System Number (ASN) data for an IP address.
Fields§
§autonomous_system_number: Option<u32>The autonomous system number for the IP address.
autonomous_system_organization: Option<&'a str>The organization associated with the registered ASN.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Asn<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Asn<'a>
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<'a> Freeze for Asn<'a>
impl<'a> RefUnwindSafe for Asn<'a>
impl<'a> Send for Asn<'a>
impl<'a> Sync for Asn<'a>
impl<'a> Unpin for Asn<'a>
impl<'a> UnwindSafe for Asn<'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