rdap_types/availability.rs
1//! Domain availability result type.
2
3use serde::{Deserialize, Serialize};
4
5/// Result of a domain availability check.
6#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
7pub struct AvailabilityResult {
8 /// The domain name that was checked.
9 pub domain: String,
10 /// `true` if the registry returned 404 (not found), `false` if registered.
11 pub available: bool,
12 /// Expiration date string from the RDAP expiration event, if present.
13 #[serde(skip_serializing_if = "Option::is_none")]
14 pub expires_at: Option<String>,
15}