Struct google_api_proto::google::devtools::cloudbuild::v1::GitFileSource
source · pub struct GitFileSource {
pub path: String,
pub uri: String,
pub repo_type: i32,
pub revision: String,
pub source: Option<Source>,
pub enterprise_config: Option<EnterpriseConfig>,
}
Expand description
GitFileSource describes a file within a (possibly remote) code repository.
Fields§
§path: String
The path of the file, with the repo root as the root of the path.
uri: String
The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
repo_type: i32
See RepoType above.
revision: String
The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.
source: Option<Source>
The source of the SCM repo.
enterprise_config: Option<EnterpriseConfig>
The resource name of the enterprise config that should be applied to this source.
Implementations§
source§impl GitFileSource
impl GitFileSource
Trait Implementations§
source§impl Clone for GitFileSource
impl Clone for GitFileSource
source§fn clone(&self) -> GitFileSource
fn clone(&self) -> GitFileSource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GitFileSource
impl Debug for GitFileSource
source§impl Default for GitFileSource
impl Default for GitFileSource
source§impl Message for GitFileSource
impl Message for GitFileSource
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for GitFileSource
impl PartialEq for GitFileSource
source§fn eq(&self, other: &GitFileSource) -> bool
fn eq(&self, other: &GitFileSource) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GitFileSource
Auto Trait Implementations§
impl Freeze for GitFileSource
impl RefUnwindSafe for GitFileSource
impl Send for GitFileSource
impl Sync for GitFileSource
impl Unpin for GitFileSource
impl UnwindSafe for GitFileSource
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
§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>
T
in a tonic::Request