#[non_exhaustive]pub enum BuildTemplate {
Autodetect(bool),
Build(Box<Build>),
Filename(String),
GitFileSource(Box<GitFileSource>),
}Expand description
Template describing the Build request to make when the trigger is matched. At least one of the template fields must be provided.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Autodetect(bool)
Autodetect build configuration. The following precedence is used (case insensitive):
- cloudbuild.yaml
- cloudbuild.yml
- cloudbuild.json
- Dockerfile
Currently only available for GitHub App Triggers.
Build(Box<Build>)
Contents of the build template.
Filename(String)
Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
GitFileSource(Box<GitFileSource>)
The file source describing the local or remote Build template.
Trait Implementations§
Source§impl Clone for BuildTemplate
impl Clone for BuildTemplate
Source§fn clone(&self) -> BuildTemplate
fn clone(&self) -> BuildTemplate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuildTemplate
impl Debug for BuildTemplate
Source§impl PartialEq for BuildTemplate
impl PartialEq for BuildTemplate
impl StructuralPartialEq for BuildTemplate
Auto Trait Implementations§
impl Freeze for BuildTemplate
impl RefUnwindSafe for BuildTemplate
impl Send for BuildTemplate
impl Sync for BuildTemplate
impl Unpin for BuildTemplate
impl UnwindSafe for BuildTemplate
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