pub struct Arg {
pub name: String,
pub default: Option<String>,
}Expand description
Represents an ARG instruction
use nanite_docker::{Arg};
let arg = Arg {
name: "name".to_string(),
default: Some("default".to_string()),
};
let arg_built = format!("{arg}");
assert_eq!(arg_built, "ARG name=default");Fields§
§name: String§default: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Arg
impl RefUnwindSafe for Arg
impl Send for Arg
impl Sync for Arg
impl Unpin for Arg
impl UnwindSafe for Arg
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