pub struct MetadataLabel { /* private fields */ }Expand description
One portable metadata label attached to an application resource.
Label names remain opaque because Docker, Podman, Compose, and future targets do not share one
useful restrictive grammar. Values use ProtectedString so runtime-derived metadata cannot
leak through debug output before a caller explicitly authorizes rendering it.
Implementations§
Source§impl MetadataLabel
impl MetadataLabel
Sourcepub const fn new(name: Identifier, value: ProtectedString) -> Self
pub const fn new(name: Identifier, value: ProtectedString) -> Self
Creates one metadata label.
Sourcepub const fn name(&self) -> &Identifier
pub const fn name(&self) -> &Identifier
Returns the opaque metadata-label name.
Sourcepub const fn value(&self) -> &ProtectedString
pub const fn value(&self) -> &ProtectedString
Returns the protected metadata-label value.
Trait Implementations§
Source§impl Clone for MetadataLabel
impl Clone for MetadataLabel
Source§fn clone(&self) -> MetadataLabel
fn clone(&self) -> MetadataLabel
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 MetadataLabel
impl Debug for MetadataLabel
impl Eq for MetadataLabel
Source§impl PartialEq for MetadataLabel
impl PartialEq for MetadataLabel
impl StructuralPartialEq for MetadataLabel
Auto Trait Implementations§
impl Freeze for MetadataLabel
impl RefUnwindSafe for MetadataLabel
impl Send for MetadataLabel
impl Sync for MetadataLabel
impl Unpin for MetadataLabel
impl UnsafeUnpin for MetadataLabel
impl UnwindSafe for MetadataLabel
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