#[non_exhaustive]pub struct UpdateBuildTriggerRequest {
pub project_id: String,
pub trigger_id: String,
pub trigger: Option<BuildTrigger>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
Request to update an existing 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.project_id: StringRequired. ID of the project that owns the trigger.
trigger_id: StringRequired. ID of the BuildTrigger to update.
trigger: Option<BuildTrigger>Required. BuildTrigger to update.
update_mask: Option<FieldMask>Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed.
Implementations§
Source§impl UpdateBuildTriggerRequest
impl UpdateBuildTriggerRequest
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 = UpdateBuildTriggerRequest::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 = UpdateBuildTriggerRequest::new().set_trigger_id("example");Sourcepub fn set_trigger<T>(self, v: T) -> Selfwhere
T: Into<BuildTrigger>,
pub fn set_trigger<T>(self, v: T) -> Selfwhere
T: Into<BuildTrigger>,
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>,
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateBuildTriggerRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateBuildTriggerRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateBuildTriggerRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateBuildTriggerRequest
impl Clone for UpdateBuildTriggerRequest
Source§fn clone(&self) -> UpdateBuildTriggerRequest
fn clone(&self) -> UpdateBuildTriggerRequest
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 UpdateBuildTriggerRequest
impl Debug for UpdateBuildTriggerRequest
Source§impl Default for UpdateBuildTriggerRequest
impl Default for UpdateBuildTriggerRequest
Source§fn default() -> UpdateBuildTriggerRequest
fn default() -> UpdateBuildTriggerRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateBuildTriggerRequest
impl Message for UpdateBuildTriggerRequest
impl StructuralPartialEq for UpdateBuildTriggerRequest
Auto Trait Implementations§
impl Freeze for UpdateBuildTriggerRequest
impl RefUnwindSafe for UpdateBuildTriggerRequest
impl Send for UpdateBuildTriggerRequest
impl Sync for UpdateBuildTriggerRequest
impl Unpin for UpdateBuildTriggerRequest
impl UnwindSafe for UpdateBuildTriggerRequest
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