//! 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"),
//! );
//! ```
pub use ;