Enum google_api_proto::google::devtools::cloudbuild::v1::build_trigger::BuildTemplate
source · pub enum BuildTemplate {
Autodetect(bool),
Build(Build),
Filename(String),
GitFileSource(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§
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(Build)
Contents of the build template.
Filename(String)
Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
GitFileSource(GitFileSource)
The file source describing the local or remote Build template.
Implementations§
source§impl BuildTemplate
impl BuildTemplate
sourcepub fn merge(
field: &mut Option<BuildTemplate>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<BuildTemplate>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for BuildTemplate
impl Clone for BuildTemplate
source§fn clone(&self) -> BuildTemplate
fn clone(&self) -> BuildTemplate
Returns a copy 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
source§fn eq(&self, other: &BuildTemplate) -> bool
fn eq(&self, other: &BuildTemplate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request