monovm-whois-rust 1.0.0

Domain WHOIS and RDAP lookups with availability detection, structured record parsing, referral chasing, caching and rate limiting.
Documentation
//! The RDAP response model of RFC 9083.
//!
//! Exposed as its own module because the typed response is useful on its own.
//! RDAP carries structure that a [`WhoisRecord`](crate::parser::WhoisRecord)
//! deliberately flattens away — nested entities, per-event actors, DS records — and
//! a caller who needs that should not have to re-parse the JSON to get it.
//!
//! ```
//! use monovm_whois::rdap::RdapResponse;
//!
//! let response = RdapResponse::parse(r#"{
//!     "objectClassName": "domain",
//!     "ldhName": "example.com",
//!     "entities": [{
//!         "roles": ["registrar"],
//!         "vcardArray": ["vcard", [["fn", {}, "text", "Example Registrar, LLC"]]]
//!     }]
//! }"#).unwrap();
//!
//! assert!(response.is_domain());
//! assert_eq!(
//!     response.entity_with_role("registrar").unwrap().display_name().as_deref(),
//!     Some("Example Registrar, LLC"),
//! );
//! ```

mod model;

pub use model::{
    IpAddresses, JCard, JCardProperty, PublicId, RdapEntity, RdapEvent, RdapNameserver, RdapNotice,
    RdapResponse, SecureDns,
};