Struct DockerLabel
pub struct DockerLabel { /* private fields */ }Expand description
A Docker label key/value pair.
Implementations§
§impl DockerLabel
impl DockerLabel
pub fn new(
key: DockerLabelKey,
value: impl AsRef<str>,
) -> Result<DockerLabel, DockerLabelError>
pub fn new( key: DockerLabelKey, value: impl AsRef<str>, ) -> Result<DockerLabel, DockerLabelError>
Creates a Docker label.
pub fn oci_title(
value: impl AsRef<str>,
) -> Result<DockerLabel, DockerLabelError>
pub fn oci_title( value: impl AsRef<str>, ) -> Result<DockerLabel, DockerLabelError>
Creates a common OCI title label.
pub const fn key(&self) -> &DockerLabelKey
pub const fn key(&self) -> &DockerLabelKey
Returns the label key.
Trait Implementations§
§impl Clone for DockerLabel
impl Clone for DockerLabel
§fn clone(&self) -> DockerLabel
fn clone(&self) -> DockerLabel
Returns a duplicate 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 more§impl Debug for DockerLabel
impl Debug for DockerLabel
§impl Display for DockerLabel
impl Display for DockerLabel
§impl Hash for DockerLabel
impl Hash for DockerLabel
§impl Ord for DockerLabel
impl Ord for DockerLabel
§impl PartialEq for DockerLabel
impl PartialEq for DockerLabel
§impl PartialOrd for DockerLabel
impl PartialOrd for DockerLabel
impl Eq for DockerLabel
impl StructuralPartialEq for DockerLabel
Auto Trait Implementations§
impl Freeze for DockerLabel
impl RefUnwindSafe for DockerLabel
impl Send for DockerLabel
impl Sync for DockerLabel
impl Unpin for DockerLabel
impl UnsafeUnpin for DockerLabel
impl UnwindSafe for DockerLabel
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