[][src]Struct compose_yml::v2::Build

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 InterpolateAll for Build
[src]

Recursive merge all fields in the structure.

impl MergeOverride for Build
[src]

Recursive merge all fields in the structure.

impl Eq for Build
[src]

impl PartialEq<Build> for Build
[src]

impl Clone for Build
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Build
[src]

impl FromStr for Build
[src]

type Err = Void

The associated error which can be returned from parsing.

impl Serialize for Build
[src]

impl<'de> Deserialize<'de> for Build
[src]

Auto Trait Implementations

impl Send for Build

impl Sync for Build

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.