#[non_exhaustive]pub enum HostnameKind {
Resolved,
Expression,
Invalid,
}Expand description
The semantic family of a service-level Compose hostname.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Resolved
A resolved ASCII hostname satisfying the conservative RFC-1123 grammar.
Expression
A scalar containing a dollar marker and therefore deferred to interpolation.
Invalid
A resolved literal that does not satisfy the conservative hostname grammar.
Trait Implementations§
Source§impl Clone for HostnameKind
impl Clone for HostnameKind
Source§fn clone(&self) -> HostnameKind
fn clone(&self) -> HostnameKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HostnameKind
Source§impl Debug for HostnameKind
impl Debug for HostnameKind
impl Eq for HostnameKind
Source§impl PartialEq for HostnameKind
impl PartialEq for HostnameKind
impl StructuralPartialEq for HostnameKind
Auto Trait Implementations§
impl Freeze for HostnameKind
impl RefUnwindSafe for HostnameKind
impl Send for HostnameKind
impl Sync for HostnameKind
impl Unpin for HostnameKind
impl UnsafeUnpin for HostnameKind
impl UnwindSafe for HostnameKind
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