pub struct GitHubEventsConfig {
pub enterprise_config_resource_name: Option<String>,
pub installation_id: Option<i64>,
pub name: Option<String>,
pub owner: Option<String>,
pub pull_request: Option<PullRequestFilter>,
pub push: Option<PushFilter>,
}Expand description
GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.
This type is not used in any activity, and only used as part of another schema.
Fields§
§enterprise_config_resource_name: Option<String>The resource name of the github enterprise config that should be applied to this installation. For example: “projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}”
installation_id: Option<i64>The installationID that emits the GitHub event.
name: Option<String>Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is “cloud-builders”.
owner: Option<String>Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is “googlecloudplatform”.
pull_request: Option<PullRequestFilter>filter to match changes in pull requests.
push: Option<PushFilter>filter to match changes in refs like branches, tags.
Trait Implementations§
Source§impl Clone for GitHubEventsConfig
impl Clone for GitHubEventsConfig
Source§fn clone(&self) -> GitHubEventsConfig
fn clone(&self) -> GitHubEventsConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GitHubEventsConfig
impl Debug for GitHubEventsConfig
Source§impl Default for GitHubEventsConfig
impl Default for GitHubEventsConfig
Source§fn default() -> GitHubEventsConfig
fn default() -> GitHubEventsConfig
Source§impl<'de> Deserialize<'de> for GitHubEventsConfig
impl<'de> Deserialize<'de> for GitHubEventsConfig
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 GitHubEventsConfig
impl Serialize for GitHubEventsConfig
impl Part for GitHubEventsConfig
Auto Trait Implementations§
impl Freeze for GitHubEventsConfig
impl RefUnwindSafe for GitHubEventsConfig
impl Send for GitHubEventsConfig
impl Sync for GitHubEventsConfig
impl Unpin for GitHubEventsConfig
impl UnwindSafe for GitHubEventsConfig
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