pub struct DomainResult {
pub domain: String,
pub available: Option<bool>,
pub info: Option<DomainInfo>,
pub check_duration: Option<Duration>,
pub method_used: CheckMethod,
pub error_message: Option<String>,
}
Expand description
Result of a domain availability check.
Contains all information about a domain’s availability status, registration details, and metadata about the check itself.
Fields§
§domain: String
The domain name that was checked (e.g., “example.com”)
available: Option<bool>
Whether the domain is available for registration.
Some(true)
: Domain is availableSome(false)
: Domain is taken/registeredNone
: Status could not be determined
info: Option<DomainInfo>
Detailed registration information (only available for taken domains)
check_duration: Option<Duration>
How long the domain check took to complete
method_used: CheckMethod
Which method was used to check the domain
error_message: Option<String>
Any error message if the check failed
Trait Implementations§
Source§impl Clone for DomainResult
impl Clone for DomainResult
Source§fn clone(&self) -> DomainResult
fn clone(&self) -> DomainResult
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 DomainResult
impl Debug for DomainResult
Source§impl<'de> Deserialize<'de> for DomainResult
impl<'de> Deserialize<'de> for DomainResult
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 DomainResult
impl RefUnwindSafe for DomainResult
impl Send for DomainResult
impl Sync for DomainResult
impl Unpin for DomainResult
impl UnwindSafe for DomainResult
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