#[non_exhaustive]pub struct CreateBuildTriggerRequest {
pub parent: String,
pub project_id: String,
pub trigger: Option<BuildTrigger>,
/* private fields */
}
Expand description
Request to create a new BuildTrigger
.
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.parent: String
The parent resource where this trigger will be created.
Format: projects/{project}/locations/{location}
project_id: String
Required. ID of the project for which to configure automatic builds.
trigger: Option<BuildTrigger>
Required. BuildTrigger
to create.
Implementations§
Source§impl CreateBuildTriggerRequest
impl CreateBuildTriggerRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
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.
Sourcepub fn set_trigger<T>(self, v: T) -> Selfwhere
T: Into<BuildTrigger>,
pub fn set_trigger<T>(self, v: T) -> Selfwhere
T: Into<BuildTrigger>,
Sets the value of trigger.
Sourcepub fn set_or_clear_trigger<T>(self, v: Option<T>) -> Selfwhere
T: Into<BuildTrigger>,
pub fn set_or_clear_trigger<T>(self, v: Option<T>) -> Selfwhere
T: Into<BuildTrigger>,
Sets or clears the value of trigger.
Trait Implementations§
Source§impl Clone for CreateBuildTriggerRequest
impl Clone for CreateBuildTriggerRequest
Source§fn clone(&self) -> CreateBuildTriggerRequest
fn clone(&self) -> CreateBuildTriggerRequest
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 CreateBuildTriggerRequest
impl Debug for CreateBuildTriggerRequest
Source§impl Default for CreateBuildTriggerRequest
impl Default for CreateBuildTriggerRequest
Source§fn default() -> CreateBuildTriggerRequest
fn default() -> CreateBuildTriggerRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateBuildTriggerRequest
impl Message for CreateBuildTriggerRequest
impl StructuralPartialEq for CreateBuildTriggerRequest
Auto Trait Implementations§
impl Freeze for CreateBuildTriggerRequest
impl RefUnwindSafe for CreateBuildTriggerRequest
impl Send for CreateBuildTriggerRequest
impl Sync for CreateBuildTriggerRequest
impl Unpin for CreateBuildTriggerRequest
impl UnwindSafe for CreateBuildTriggerRequest
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