Struct compose_yml::v2::Build
[−]
[src]
pub struct Build { pub context: RawOr<Context>, pub dockerfile: Option<RawOr<String>>, pub args: BTreeMap<String, RawOr<String>>, pub target: Option<RawOr<String>>, // some fields omitted }
Information on how to build a Docker image.
Fields
context: RawOr<Context>
The source directory to use for this build.
dockerfile: Option<RawOr<String>>
The name of an alternate Dockerfile
to use.
args: BTreeMap<String, RawOr<String>>
Build arguments.
target: Option<RawOr<String>>
The FROM target at which to stop building
Methods
impl Build
[src]
pub fn new<C: Into<Context>>(ctx: C) -> Self
[src]
Create a new build from just Context
. To override other fields, you
can use struct notation.
use compose_yml::v2 as dc; dc::Build::new(dc::Context::new("app")); dc::Build { dockerfile: Some(dc::escape("Dockerfile-alt").unwrap()), ..dc::Build::new(dc::Context::new("app")) };
Trait Implementations
impl Clone for Build
[src]
fn clone(&self) -> Build
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Build
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Build
[src]
fn eq(&self, __arg_0: &Build) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Build) -> bool
[src]
This method tests for !=
.
impl Eq for Build
[src]
impl InterpolateAll for Build
[src]
Recursive merge all fields in the structure.
fn interpolate_all(&mut self) -> Result<()>
[src]
Recursively walk over this type, interpolating all RawOr
values containing references to the environment. The default implementation leaves a value unchanged. Read more
impl MergeOverride for Build
[src]
Recursive merge all fields in the structure.
fn merge_override(&self, ovr: &Self) -> Self
[src]
Given this value and an override value, merge the override value into this one, producing a new value. Read more