pub struct DomainResponse {
pub query: String,
pub ldh_name: Option<String>,
pub unicode_name: Option<String>,
pub handle: Option<String>,
pub status: Vec<RdapStatus>,
pub nameservers: Vec<String>,
pub registrar: Option<RegistrarSummary>,
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 a domain query.
Fields§
§query: StringThe original query string.
ldh_name: Option<String>LDH (letters, digits, hyphens) form of the domain name.
unicode_name: Option<String>Unicode (internationalised) form of the domain name.
handle: Option<String>Registry handle / ROID.
status: Vec<RdapStatus>Current status flags.
nameservers: Vec<String>Delegated nameservers.
registrar: Option<RegistrarSummary>Registrar summary (extracted from entities for convenience).
entities: Vec<RdapEntity>All associated entities (registrant, admin, tech, abuse, etc.).
events: Vec<RdapEvent>Lifecycle events (registration, expiration, last changed, …).
links: Vec<RdapLink>§remarks: Vec<RdapRemark>§meta: ResponseMetaQuery metadata (source server, timestamp, cache status).
Implementations§
Source§impl DomainResponse
impl DomainResponse
Sourcepub fn expiration_date(&self) -> Option<&str>
pub fn expiration_date(&self) -> Option<&str>
Returns the expiration date string from events, if present.
Sourcepub fn registration_date(&self) -> Option<&str>
pub fn registration_date(&self) -> Option<&str>
Returns the registration date string from events, if present.
Trait Implementations§
Source§impl Clone for DomainResponse
impl Clone for DomainResponse
Source§fn clone(&self) -> DomainResponse
fn clone(&self) -> DomainResponse
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 DomainResponse
impl Debug for DomainResponse
Source§impl<'de> Deserialize<'de> for DomainResponse
impl<'de> Deserialize<'de> for DomainResponse
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 DomainResponse
impl RefUnwindSafe for DomainResponse
impl Send for DomainResponse
impl Sync for DomainResponse
impl Unpin for DomainResponse
impl UnsafeUnpin for DomainResponse
impl UnwindSafe for DomainResponse
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