#[non_exhaustive]pub struct DomainCheckResult {
pub domain: String,
pub available: bool,
pub is_premium_name: bool,
pub premium_registration_price: Option<f64>,
pub error_no: Option<String>,
pub description: Option<String>,
}Expand description
The availability result for a single domain from
Domains::check.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.domain: StringThe domain that was checked.
available: boolWhether the domain is available to register.
Whether Namecheap classifies the domain as a premium name.
The premium registration price, when the domain is a premium name.
error_no: Option<String>A per-domain error code, when Namecheap could not check this entry
("0" indicates no error).
description: Option<String>A per-domain description or error message, when present.
Trait Implementations§
Source§impl Clone for DomainCheckResult
impl Clone for DomainCheckResult
Source§fn clone(&self) -> DomainCheckResult
fn clone(&self) -> DomainCheckResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DomainCheckResult
impl Debug for DomainCheckResult
Source§impl<'de> Deserialize<'de> for DomainCheckResult
impl<'de> Deserialize<'de> for DomainCheckResult
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 DomainCheckResult
impl RefUnwindSafe for DomainCheckResult
impl Send for DomainCheckResult
impl Sync for DomainCheckResult
impl Unpin for DomainCheckResult
impl UnsafeUnpin for DomainCheckResult
impl UnwindSafe for DomainCheckResult
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