pub struct IpResponse {Show 15 fields
pub query: String,
pub handle: Option<String>,
pub start_address: Option<String>,
pub end_address: Option<String>,
pub ip_version: Option<IpVersion>,
pub name: Option<String>,
pub allocation_type: Option<String>,
pub country: Option<String>,
pub parent_handle: Option<String>,
pub status: Vec<RdapStatus>,
pub entities: Vec<RdapEntity>,
pub events: Vec<RdapEvent>,
pub links: Vec<RdapLink>,
pub remarks: Vec<RdapRemark>,
pub meta: ResponseMeta,
}Expand description
Normalised RDAP response for an IP address query.
§Example
let client = RdapClient::new()?;
let res = client.ip("8.8.8.8").await?;
println!("Country: {:?}", res.country);Fields§
§query: StringThe original query string (IP address).
handle: Option<String>Registry handle.
start_address: Option<String>First address in the CIDR block.
end_address: Option<String>Last address in the CIDR block.
ip_version: Option<IpVersion>IP version of the network block.
name: Option<String>Human-readable name of the allocation (e.g., “GOOGLE”).
allocation_type: Option<String>Allocation type (e.g., “DIRECT ALLOCATION”).
country: Option<String>ISO 3166-1 alpha-2 country code.
parent_handle: Option<String>Parent network handle (for sub-allocations).
status: Vec<RdapStatus>§entities: Vec<RdapEntity>§events: Vec<RdapEvent>§links: Vec<RdapLink>§remarks: Vec<RdapRemark>§meta: ResponseMetaTrait Implementations§
Source§impl Clone for IpResponse
impl Clone for IpResponse
Source§fn clone(&self) -> IpResponse
fn clone(&self) -> IpResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IpResponse
impl Debug for IpResponse
Source§impl<'de> Deserialize<'de> for IpResponse
impl<'de> Deserialize<'de> for IpResponse
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 IpResponse
impl RefUnwindSafe for IpResponse
impl Send for IpResponse
impl Sync for IpResponse
impl Unpin for IpResponse
impl UnsafeUnpin for IpResponse
impl UnwindSafe for IpResponse
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