pub struct BuildRequest {
pub org: OrgId,
pub app: String,
pub context: PathBuf,
pub subdir: Option<String>,
pub builder: Builder,
pub args: Vec<(String, String)>,
pub tag: String,
pub untrusted: bool,
pub cache: Option<String>,
}Expand description
One build.
Fields§
§org: OrgId§app: StringThe app the image belongs to: names the repository in the registry
(<org>/<app>) and the build cache volume.
context: PathBufA checked-out source tree on the host. The build reads it, never writes it.
subdir: Option<String>A subdirectory of context to build from.
builder: Builder§args: Vec<(String, String)>Build-time variables (Dockerfile ARGs, buildpack env).
tag: StringThe tag to push, e.g. the commit SHA.
untrusted: boolBuild in a VM rather than a container.
cache: Option<String>Whose build cache volume to use (default: the app’s). Previews build with their own, so a pull request cannot poison the cache production builds read.
Trait Implementations§
Source§impl Clone for BuildRequest
impl Clone for BuildRequest
Auto Trait Implementations§
impl Freeze for BuildRequest
impl RefUnwindSafe for BuildRequest
impl Send for BuildRequest
impl Sync for BuildRequest
impl Unpin for BuildRequest
impl UnsafeUnpin for BuildRequest
impl UnwindSafe for BuildRequest
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
Mutably borrows from an owned value. Read more