pub struct Build { /* private fields */ }Expand description
A build to run.
Implementations§
Source§impl Build
impl Build
Sourcepub fn builder() -> BuildBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> BuildBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building Build.
On the builder, call .image(...), .memory(...)(optional), .cpus(...)(optional), .volumes(...)(optional), .ports(...)(optional), .envs(...)(optional), .depends_on(...)(optional), .workdir(...)(optional), .shell(...)(optional), .steps(...)(optional), .command(...)(optional), .imports(...)(optional), .exports(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of Build.
Source§impl Build
impl Build
Sourcepub fn get_image(&self) -> &ReferenceOrPath
pub fn get_image(&self) -> &ReferenceOrPath
The image to use. This can be a path to a local rootfs or an OCI image reference.
Sourcepub fn get_memory(&self) -> &Option<u32>
pub fn get_memory(&self) -> &Option<u32>
The amount of memory in MiB to use.
Sourcepub fn get_volumes(&self) -> &Vec<PathPair>
pub fn get_volumes(&self) -> &Vec<PathPair>
The volumes to mount.
Sourcepub fn get_depends_on(&self) -> &Vec<String>
pub fn get_depends_on(&self) -> &Vec<String>
The builds to depend on.
Sourcepub fn get_workdir(&self) -> &Option<Utf8UnixPathBuf>
pub fn get_workdir(&self) -> &Option<Utf8UnixPathBuf>
The working directory to use.
Sourcepub fn get_command(&self) -> &Vec<String>
pub fn get_command(&self) -> &Vec<String>
The command to run. This is a list of command and arguments.
Sourcepub fn get_imports(&self) -> &HashMap<String, Utf8UnixPathBuf>
pub fn get_imports(&self) -> &HashMap<String, Utf8UnixPathBuf>
The files to import.
Sourcepub fn get_exports(&self) -> &HashMap<String, Utf8UnixPathBuf>
pub fn get_exports(&self) -> &HashMap<String, Utf8UnixPathBuf>
The artifacts produced by the build.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Build
impl<'de> Deserialize<'de> for Build
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for Build
Auto Trait Implementations§
impl Freeze for Build
impl RefUnwindSafe for Build
impl Send for Build
impl Sync for Build
impl Unpin for Build
impl UnwindSafe for Build
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more