Struct spacetimedb_lib::name::Tld
source · pub struct Tld(/* private fields */);Expand description
The top level domain part of a DomainName.
This newtype witnesses that the TLD is well-formed as per the parsing rules
of a full DomainName. A Tld is also a valid DomainName, and can
be converted to this type.
Note that the SpacetimeDB DNS registry may apply additional restrictions on what TLDs can be registered.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Tld
impl<'de> Deserialize<'de> for Tld
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
source§impl<'de> Deserialize<'de> for Tld
impl<'de> Deserialize<'de> for Tld
source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given
deserializer.source§impl From<DomainName> for Tld
impl From<DomainName> for Tld
source§fn from(value: DomainName) -> Self
fn from(value: DomainName) -> Self
Converts to this type from the input type.
source§impl From<Tld> for DomainName
impl From<Tld> for DomainName
source§impl SpacetimeType for Tld
impl SpacetimeType for Tld
source§fn make_type<S: TypespaceBuilder>(_ts: &mut S) -> AlgebraicType
fn make_type<S: TypespaceBuilder>(_ts: &mut S) -> AlgebraicType
Returns an
AlgebraicType representing the type for Self in SATS
and in the typing context in typespace.impl Eq for Tld
impl StructuralPartialEq for Tld
Auto Trait Implementations§
impl RefUnwindSafe for Tld
impl Send for Tld
impl Sync for Tld
impl Unpin for Tld
impl UnwindSafe for Tld
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Satn for T
impl<T> Satn for T
source§fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Formats the value using the SATN data format into the formatter
f.source§fn fmt_psql(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt_psql(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Formats the value using the postgres SATN data format into the formatter
f.source§fn to_satn(&self) -> String
fn to_satn(&self) -> String
Formats the value using the SATN data format into the returned
String.source§fn to_satn_pretty(&self) -> String
fn to_satn_pretty(&self) -> String
Pretty prints the value using the SATN data format into the returned
String.