Struct cymrust::CymruIP2ASN
[−]
[src]
pub struct CymruIP2ASN {
pub ip_addr: IpAddr,
pub bgp_prefix: String,
pub as_number: u32,
pub as_name: String,
pub country_code: String,
pub registry: String,
pub allocated: Option<String>,
pub expires: SystemTime,
}IP-to-ASN mapping information
Fields
ip_addr: IpAddr
IP Address used in query
bgp_prefix: String
BGP prefix
as_number: u32
BGP Origin's Autonomous System (AS) number
as_name: String
Autonomous System (AS) description
country_code: String
Country code
registry: String
Regional registrar name
allocated: Option<String>
BGP prefix allocation date
expires: SystemTime
When information contained in this struct expires
Trait Implementations
impl Debug for CymruIP2ASN[src]
impl PartialEq for CymruIP2ASN[src]
fn eq(&self, __arg_0: &CymruIP2ASN) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &CymruIP2ASN) -> bool
This method tests for !=.
impl PartialOrd for CymruIP2ASN[src]
fn partial_cmp(&self, __arg_0: &CymruIP2ASN) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &CymruIP2ASN) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &CymruIP2ASN) -> bool
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &CymruIP2ASN) -> bool
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &CymruIP2ASN) -> bool
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Eq for CymruIP2ASN[src]
impl Ord for CymruIP2ASN[src]
fn cmp(&self, __arg_0: &CymruIP2ASN) -> Ordering
This method returns an Ordering between self and other. Read more