Information on how to build a Docker image.
The source directory to use for this build.
The name of an alternate Dockerfile
to use.
The FROM target at which to stop building
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"))
};
Recursive merge all fields in the structure.
Recursively walk over this type, interpolating all RawOr
values containing references to the environment. The default implementation leaves a value unchanged. Read more
Recursive merge all fields in the structure.
Given this value and an override value, merge the override value into this one, producing a new value. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
The associated error which can be returned from parsing.
Parses a string s
to return a value of this type. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> Typeable for T where T: Any, | |
Get the TypeId
of this object.