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

The source directory to use for this build.

The name of an alternate Dockerfile to use.

Build arguments.

The FROM target at which to stop building

Methods

impl Build
[src]

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Build
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Build
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Build
[src]

impl InterpolateAll for Build
[src]

Recursive merge all fields in the structure.

[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.

[src]

Given this value and an override value, merge the override value into this one, producing a new value. Read more

impl FromStr for Build
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for Build

impl Sync for Build