pub struct RuntimeMetadataLabel { /* private fields */ }Expand description
One effective runtime metadata label.
Inspection exposes only the merged effective value; it does not prove whether the value came from image metadata, a container-create request, or runtime-generated orchestration metadata. Values are therefore sensitive by default until an output caller explicitly exposes them.
Implementations§
Source§impl RuntimeMetadataLabel
impl RuntimeMetadataLabel
Sourcepub fn new(name: Identifier, value: impl Into<String>) -> Self
pub fn new(name: Identifier, value: impl Into<String>) -> Self
Creates a sensitive effective 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 effective metadata-label value.
Trait Implementations§
Source§impl Clone for RuntimeMetadataLabel
impl Clone for RuntimeMetadataLabel
Source§fn clone(&self) -> RuntimeMetadataLabel
fn clone(&self) -> RuntimeMetadataLabel
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 RuntimeMetadataLabel
impl Debug for RuntimeMetadataLabel
impl Eq for RuntimeMetadataLabel
Source§impl PartialEq for RuntimeMetadataLabel
impl PartialEq for RuntimeMetadataLabel
impl StructuralPartialEq for RuntimeMetadataLabel
Auto Trait Implementations§
impl Freeze for RuntimeMetadataLabel
impl RefUnwindSafe for RuntimeMetadataLabel
impl Send for RuntimeMetadataLabel
impl Sync for RuntimeMetadataLabel
impl Unpin for RuntimeMetadataLabel
impl UnsafeUnpin for RuntimeMetadataLabel
impl UnwindSafe for RuntimeMetadataLabel
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