#[non_exhaustive]pub struct RunBuildTriggerRequest {
pub name: String,
pub project_id: String,
pub trigger_id: String,
pub source: Option<RepoSource>,
/* private fields */
}Expand description
Specifies a build trigger to run and the source to use.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the Trigger to run.
Format: projects/{project}/locations/{location}/triggers/{trigger}
project_id: StringRequired. ID of the project.
trigger_id: StringRequired. ID of the trigger.
source: Option<RepoSource>Source to build against this trigger. Branch and tag names cannot consist of regular expressions.
Implementations§
Source§impl RunBuildTriggerRequest
impl RunBuildTriggerRequest
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
§Example
ⓘ
let x = RunBuildTriggerRequest::new().set_project_id("example");Sourcepub fn set_trigger_id<T: Into<String>>(self, v: T) -> Self
pub fn set_trigger_id<T: Into<String>>(self, v: T) -> Self
Sets the value of trigger_id.
§Example
ⓘ
let x = RunBuildTriggerRequest::new().set_trigger_id("example");Sourcepub fn set_source<T>(self, v: T) -> Selfwhere
T: Into<RepoSource>,
pub fn set_source<T>(self, v: T) -> Selfwhere
T: Into<RepoSource>,
Sourcepub fn set_or_clear_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<RepoSource>,
pub fn set_or_clear_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<RepoSource>,
Trait Implementations§
Source§impl Clone for RunBuildTriggerRequest
impl Clone for RunBuildTriggerRequest
Source§fn clone(&self) -> RunBuildTriggerRequest
fn clone(&self) -> RunBuildTriggerRequest
Returns a duplicate 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 RunBuildTriggerRequest
impl Debug for RunBuildTriggerRequest
Source§impl Default for RunBuildTriggerRequest
impl Default for RunBuildTriggerRequest
Source§fn default() -> RunBuildTriggerRequest
fn default() -> RunBuildTriggerRequest
Returns the “default value” for a type. Read more
Source§impl Message for RunBuildTriggerRequest
impl Message for RunBuildTriggerRequest
Source§impl PartialEq for RunBuildTriggerRequest
impl PartialEq for RunBuildTriggerRequest
impl StructuralPartialEq for RunBuildTriggerRequest
Auto Trait Implementations§
impl Freeze for RunBuildTriggerRequest
impl RefUnwindSafe for RunBuildTriggerRequest
impl Send for RunBuildTriggerRequest
impl Sync for RunBuildTriggerRequest
impl Unpin for RunBuildTriggerRequest
impl UnwindSafe for RunBuildTriggerRequest
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