pub struct DockerLabelKey(/* private fields */);Expand description
A validated Docker label key.
Implementations§
Source§impl DockerLabelKey
impl DockerLabelKey
Sourcepub fn new(value: impl AsRef<str>) -> Result<DockerLabelKey, DockerLabelError>
pub fn new(value: impl AsRef<str>) -> Result<DockerLabelKey, DockerLabelError>
Creates a label key.
Trait Implementations§
Source§impl AsRef<str> for DockerLabelKey
impl AsRef<str> for DockerLabelKey
Source§impl Clone for DockerLabelKey
impl Clone for DockerLabelKey
Source§fn clone(&self) -> DockerLabelKey
fn clone(&self) -> DockerLabelKey
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 moreSource§impl Debug for DockerLabelKey
impl Debug for DockerLabelKey
Source§impl Display for DockerLabelKey
impl Display for DockerLabelKey
Source§impl FromStr for DockerLabelKey
impl FromStr for DockerLabelKey
Source§type Err = DockerLabelError
type Err = DockerLabelError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<DockerLabelKey, <DockerLabelKey as FromStr>::Err>
fn from_str( value: &str, ) -> Result<DockerLabelKey, <DockerLabelKey as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for DockerLabelKey
impl Hash for DockerLabelKey
Source§impl Ord for DockerLabelKey
impl Ord for DockerLabelKey
Source§fn cmp(&self, other: &DockerLabelKey) -> Ordering
fn cmp(&self, other: &DockerLabelKey) -> Ordering
1.21.0 (const: unstable) · 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 DockerLabelKey
impl PartialEq for DockerLabelKey
Source§fn eq(&self, other: &DockerLabelKey) -> bool
fn eq(&self, other: &DockerLabelKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DockerLabelKey
impl PartialOrd for DockerLabelKey
impl Eq for DockerLabelKey
impl StructuralPartialEq for DockerLabelKey
Auto Trait Implementations§
impl Freeze for DockerLabelKey
impl RefUnwindSafe for DockerLabelKey
impl Send for DockerLabelKey
impl Sync for DockerLabelKey
impl Unpin for DockerLabelKey
impl UnsafeUnpin for DockerLabelKey
impl UnwindSafe for DockerLabelKey
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