pub struct Label {
pub key: String,
pub value: String,
}Expand description
Represents a LABEL instruction
use nanite_docker::{Label};
let label = Label {
key: "key".to_string(),
value: "value".to_string(),
};
let label_built = format!("{label}");
assert_eq!(label_built, "LABEL key=value");Fields§
§key: String§value: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnwindSafe for Label
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