pub struct Hostname { /* private fields */ }Expand description
A service-level Compose hostname value with its authored string scalar retained.
Implementations§
Source§impl Hostname
impl Hostname
Sourcepub const fn raw(&self) -> &Located<String>
pub const fn raw(&self) -> &Located<String>
Returns the complete authored scalar value and its source span.
Sourcepub const fn kind(&self) -> &HostnameKind
pub const fn kind(&self) -> &HostnameKind
Returns the conservative, non-destructive hostname classification.
Sourcepub const fn is_resolved(&self) -> bool
pub const fn is_resolved(&self) -> bool
Reports whether the hostname is a resolved RFC-1123 literal.
Trait Implementations§
impl Eq for Hostname
impl StructuralPartialEq for Hostname
Auto Trait Implementations§
impl Freeze for Hostname
impl RefUnwindSafe for Hostname
impl Send for Hostname
impl Sync for Hostname
impl Unpin for Hostname
impl UnsafeUnpin for Hostname
impl UnwindSafe for Hostname
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