pub struct GitFileSource {
pub bitbucket_server_config: Option<String>,
pub github_enterprise_config: Option<String>,
pub path: Option<String>,
pub repo_type: Option<String>,
pub repository: Option<String>,
pub revision: Option<String>,
pub uri: Option<String>,
}Expand description
GitFileSource describes a file within a (possibly remote) code repository.
This type is not used in any activity, and only used as part of another schema.
Fields§
§bitbucket_server_config: Option<String>The full resource name of the bitbucket server config. Format: projects/{project}/locations/{location}/bitbucketServerConfigs/{id}.
github_enterprise_config: Option<String>The full resource name of the github enterprise config. Format: projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}. projects/{project}/githubEnterpriseConfigs/{id}.
path: Option<String>The path of the file, with the repo root as the root of the path.
repo_type: Option<String>See RepoType above.
repository: Option<String>The fully qualified resource name of the Repos API repository. 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.
revision: Option<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.
uri: Option<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.
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§fn default() -> GitFileSource
fn default() -> GitFileSource
Source§impl<'de> Deserialize<'de> for GitFileSource
impl<'de> Deserialize<'de> for GitFileSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for GitFileSource
impl Serialize for GitFileSource
impl Part 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more