#[non_exhaustive]pub struct RepoSource {
pub project_id: String,
pub repo_name: String,
pub dir: String,
pub invert_regex: bool,
pub revision: Option<Revision>,
/* private fields */
}Expand description
Location of the source in a Google Cloud Source Repository.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.project_id: StringID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
repo_name: StringName of the Cloud Source Repository.
dir: StringDirectory, relative to the source root, in which to run the build.
This must be a relative path. If a step’s dir is specified and is an
absolute path, this value is ignored for that step’s execution.
eg. helloworld (no leading slash allowed)
invert_regex: boolOnly trigger a build if the revision regex does NOT match the revision regex.
revision: Option<Revision>A revision within the Cloud Source Repository must be specified in one of these ways.
Implementations§
Source§impl RepoSource
impl RepoSource
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_repo_name<T: Into<String>>(self, v: T) -> Self
pub fn set_repo_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_invert_regex<T: Into<bool>>(self, v: T) -> Self
pub fn set_invert_regex<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_revision<T: Into<Option<Revision>>>(self, v: T) -> Self
pub fn set_revision<T: Into<Option<Revision>>>(self, v: T) -> Self
Sourcepub fn branch_name(&self) -> Option<&String>
pub fn branch_name(&self) -> Option<&String>
The value of revision
if it holds a BranchName, None if the field is not set or
holds a different branch.
Sourcepub fn set_branch_name<T: Into<String>>(self, v: T) -> Self
pub fn set_branch_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn tag_name(&self) -> Option<&String>
pub fn tag_name(&self) -> Option<&String>
The value of revision
if it holds a TagName, None if the field is not set or
holds a different branch.
Sourcepub fn set_tag_name<T: Into<String>>(self, v: T) -> Self
pub fn set_tag_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn commit_sha(&self) -> Option<&String>
pub fn commit_sha(&self) -> Option<&String>
The value of revision
if it holds a CommitSha, None if the field is not set or
holds a different branch.
Sourcepub fn set_commit_sha<T: Into<String>>(self, v: T) -> Self
pub fn set_commit_sha<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for RepoSource
impl Clone for RepoSource
Source§fn clone(&self) -> RepoSource
fn clone(&self) -> RepoSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RepoSource
impl Debug for RepoSource
Source§impl Default for RepoSource
impl Default for RepoSource
Source§fn default() -> RepoSource
fn default() -> RepoSource
Source§impl PartialEq for RepoSource
impl PartialEq for RepoSource
impl StructuralPartialEq for RepoSource
Auto Trait Implementations§
impl Freeze for RepoSource
impl RefUnwindSafe for RepoSource
impl Send for RepoSource
impl Sync for RepoSource
impl Unpin for RepoSource
impl UnsafeUnpin for RepoSource
impl UnwindSafe for RepoSource
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> 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