use crateInstruction;
use Box;
use ;
/// Represents an `ONBUILD` instruction.
/// ```rust
/// use nanite_docker::{OnBuild, Instruction, Run};
///
/// let onbuild = OnBuild {
/// instruction: Box::new(Instruction::Run(Run{
/// argv: vec!["echo".into(), "hello".into()],
/// mounts: vec![],
/// network: None,
/// security: None,
/// })),
/// };
/// let onbuild_built = format!("{onbuild}");
/// assert_eq!(onbuild_built, r#"ONBUILD RUN ["echo", "hello"]"#);
/// ```