Struct kubizone_common::DomainSegment
source · pub struct DomainSegment(/* private fields */);Expand description
Segment of a domain.
This is the part between dots.
Implementations§
source§impl DomainSegment
impl DomainSegment
sourcepub const fn new_unchecked(segment: String) -> Self
pub const fn new_unchecked(segment: String) -> Self
Constructs a new DomainSegment without checking the validity of it.
pub fn is_wildcard(&self) -> bool
Trait Implementations§
source§impl Add<&DomainName> for DomainSegment
impl Add<&DomainName> for DomainSegment
§type Output = DomainName
type Output = DomainName
The resulting type after applying the
+ operator.source§impl Add<&FullyQualifiedDomainName> for DomainSegment
impl Add<&FullyQualifiedDomainName> for DomainSegment
§type Output = FullyQualifiedDomainName
type Output = FullyQualifiedDomainName
The resulting type after applying the
+ operator.source§impl Add<&PartiallyQualifiedDomainName> for DomainSegment
impl Add<&PartiallyQualifiedDomainName> for DomainSegment
§type Output = PartiallyQualifiedDomainName
type Output = PartiallyQualifiedDomainName
The resulting type after applying the
+ operator.source§impl Add<DomainName> for DomainSegment
impl Add<DomainName> for DomainSegment
§type Output = DomainName
type Output = DomainName
The resulting type after applying the
+ operator.source§impl Add<FullyQualifiedDomainName> for DomainSegment
impl Add<FullyQualifiedDomainName> for DomainSegment
§type Output = FullyQualifiedDomainName
type Output = FullyQualifiedDomainName
The resulting type after applying the
+ operator.source§impl Add<PartiallyQualifiedDomainName> for DomainSegment
impl Add<PartiallyQualifiedDomainName> for DomainSegment
§type Output = PartiallyQualifiedDomainName
type Output = PartiallyQualifiedDomainName
The resulting type after applying the
+ operator.source§impl Add for DomainSegment
impl Add for DomainSegment
source§impl AsRef<str> for DomainSegment
impl AsRef<str> for DomainSegment
source§impl Clone for DomainSegment
impl Clone for DomainSegment
source§fn clone(&self) -> DomainSegment
fn clone(&self) -> DomainSegment
Returns a copy of the value. Read more
1.0.0 · 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 DomainSegment
impl Debug for DomainSegment
source§impl Display for DomainSegment
impl Display for DomainSegment
source§impl From<&DomainSegment> for PatternSegment
impl From<&DomainSegment> for PatternSegment
source§fn from(value: &DomainSegment) -> Self
fn from(value: &DomainSegment) -> Self
Converts to this type from the input type.
source§impl From<DomainSegment> for PatternSegment
impl From<DomainSegment> for PatternSegment
source§fn from(value: DomainSegment) -> Self
fn from(value: DomainSegment) -> Self
Converts to this type from the input type.
source§impl<'a> FromIterator<&'a DomainSegment> for FullyQualifiedDomainName
impl<'a> FromIterator<&'a DomainSegment> for FullyQualifiedDomainName
source§fn from_iter<T: IntoIterator<Item = &'a DomainSegment>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = &'a DomainSegment>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl<'a> FromIterator<&'a DomainSegment> for PartiallyQualifiedDomainName
impl<'a> FromIterator<&'a DomainSegment> for PartiallyQualifiedDomainName
source§fn from_iter<T: IntoIterator<Item = &'a DomainSegment>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = &'a DomainSegment>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl FromIterator<DomainSegment> for FullyQualifiedDomainName
impl FromIterator<DomainSegment> for FullyQualifiedDomainName
source§fn from_iter<T: IntoIterator<Item = DomainSegment>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = DomainSegment>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl FromIterator<DomainSegment> for PartiallyQualifiedDomainName
impl FromIterator<DomainSegment> for PartiallyQualifiedDomainName
source§fn from_iter<T: IntoIterator<Item = DomainSegment>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = DomainSegment>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl Hash for DomainSegment
impl Hash for DomainSegment
source§impl Ord for DomainSegment
impl Ord for DomainSegment
source§fn cmp(&self, other: &DomainSegment) -> Ordering
fn cmp(&self, other: &DomainSegment) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DomainSegment
impl PartialEq for DomainSegment
source§fn eq(&self, other: &DomainSegment) -> bool
fn eq(&self, other: &DomainSegment) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for DomainSegment
impl PartialOrd for DomainSegment
source§fn partial_cmp(&self, other: &DomainSegment) -> Option<Ordering>
fn partial_cmp(&self, other: &DomainSegment) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<&str> for DomainSegment
impl TryFrom<&str> for DomainSegment
source§impl TryFrom<String> for DomainSegment
impl TryFrom<String> for DomainSegment
impl Eq for DomainSegment
impl StructuralPartialEq for DomainSegment
Auto Trait Implementations§
impl Freeze for DomainSegment
impl RefUnwindSafe for DomainSegment
impl Send for DomainSegment
impl Sync for DomainSegment
impl Unpin for DomainSegment
impl UnwindSafe for DomainSegment
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)