pub struct FreeLabelAvailability {
pub name: String,
pub available: bool,
pub reason: Option<String>,
}Expand description
Whether <label>.<domain> can be leased now (GET /free-domains/:domain/available).
Fields§
§name: StringThe full name, e.g. myhome.dinio.eu.
available: boolWhether it can be leased.
reason: Option<String>Why not, in words, when available is false (taken, reserved, too short, …).
Trait Implementations§
Source§impl Clone for FreeLabelAvailability
impl Clone for FreeLabelAvailability
Source§fn clone(&self) -> FreeLabelAvailability
fn clone(&self) -> FreeLabelAvailability
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 FreeLabelAvailability
impl Debug for FreeLabelAvailability
Source§impl<'de> Deserialize<'de> for FreeLabelAvailability
impl<'de> Deserialize<'de> for FreeLabelAvailability
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
impl Eq for FreeLabelAvailability
Source§impl PartialEq for FreeLabelAvailability
impl PartialEq for FreeLabelAvailability
Source§impl Serialize for FreeLabelAvailability
impl Serialize for FreeLabelAvailability
impl StructuralPartialEq for FreeLabelAvailability
Auto Trait Implementations§
impl Freeze for FreeLabelAvailability
impl RefUnwindSafe for FreeLabelAvailability
impl Send for FreeLabelAvailability
impl Sync for FreeLabelAvailability
impl Unpin for FreeLabelAvailability
impl UnsafeUnpin for FreeLabelAvailability
impl UnwindSafe for FreeLabelAvailability
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.