pub struct Record {
pub ip: u32,
pub prefix_len: u8,
pub as_number: u32,
pub country: String,
pub owner: String,
}
Expand description
Autonomous System number record.
Fields§
§ip: u32
Network base IP address (host byte order).
prefix_len: u8
Network mask prefix in number of bits, e.g. 24 for 255.255.255.0 mask.
as_number: u32
Assigned AS number.
country: String
Country code of network owner.
owner: String
Network owner information.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
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
Source§impl Ord for Record
impl Ord for Record
Source§impl PartialOrd for Record
impl PartialOrd for Record
impl Eq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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