Struct webpki::subject_name::dns_name::DnsName
source · pub struct DnsName(String);
Expand description
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. DnsName
s 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.
Tuple Fields§
§0: String
Implementations§
Trait Implementations§
impl Eq for DnsName
impl StructuralPartialEq for DnsName
Auto Trait Implementations§
impl Freeze for DnsName
impl RefUnwindSafe for DnsName
impl Send for DnsName
impl Sync for DnsName
impl Unpin for DnsName
impl UnwindSafe for DnsName
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)