pub struct Add {
pub opts: Vec<AddOpt>,
pub src: Vec<String>,
pub dest: String,
}Expand description
Represents an ADD instruction.
use nanite_docker::{Add, AddOpt};
let add = Add {
opts: vec![AddOpt::KeepGitDir],
src: vec!["src".to_string()],
dest: "dest".to_string(),
};
let add_built = format!("{add}");
assert_eq!(add_built, r#"ADD --keep-git-dir=true "src" "dest""#);
Fields§
§opts: Vec<AddOpt>§src: Vec<String>§dest: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for Add
impl RefUnwindSafe for Add
impl Send for Add
impl Sync for Add
impl Unpin for Add
impl UnwindSafe for Add
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