pub struct DnsName(_);Expand description
Requires the alloc feature.
A DNS Name suitable for use in the TLS Server Name Indication (SNI)
extension and/or for use as the reference hostname for which to verify a
certificate.
A DnsName is guaranteed to be syntactically valid. The validity rules are
specified in RFC 5280 Section 7.2, except that underscores are also
allowed. DnsNames do not include wildcard labels.
DnsName stores a copy of the input it was constructed from in a String
and so it is only available when the alloc default feature is enabled.
Requires the alloc feature.