pub enum TldType {
Normal,
Handshake,
Other(String),
}
Expand description
Describes what registry a TLD belongs to.
Variants§
Normal
The normal ICANN/IANA TLDs like .com, .engineering or .gay you probably want one of these
Handshake
Other(String)
An unknown registery.
at the time of writting, porkbun only supports ICANN and Handshake, but this variant exists for future-proofing.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TldType
impl<'de> Deserialize<'de> for TldType
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 TldType
impl RefUnwindSafe for TldType
impl Send for TldType
impl Sync for TldType
impl Unpin for TldType
impl UnwindSafe for TldType
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