#[non_exhaustive]pub struct UpdatePipelineRequest {
pub pipeline: Option<Pipeline>,
pub update_mask: Option<FieldMask>,
pub allow_missing: bool,
pub validate_only: bool,
/* private fields */
}Expand description
The request message for the UpdatePipeline method.
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.pipeline: Option<Pipeline>Required. The Pipeline to be updated.
update_mask: Option<FieldMask>Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of “*”.
allow_missing: boolOptional. If set to true, and the Pipeline is not found, a new Pipeline
will be created. In this situation, update_mask is ignored.
validate_only: boolOptional. If set, validate the request and preview the review, but do not post it.
Implementations§
Source§impl UpdatePipelineRequest
impl UpdatePipelineRequest
pub fn new() -> Self
Sourcepub fn set_pipeline<T>(self, v: T) -> Self
pub fn set_pipeline<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_pipeline<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_pipeline<T>(self, v: Option<T>) -> Self
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 = UpdatePipelineRequest::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 = UpdatePipelineRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdatePipelineRequest::new().set_or_clear_update_mask(None::<FieldMask>);Sourcepub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
Sets the value of allow_missing.
§Example
ⓘ
let x = UpdatePipelineRequest::new().set_allow_missing(true);Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
§Example
ⓘ
let x = UpdatePipelineRequest::new().set_validate_only(true);Trait Implementations§
Source§impl Clone for UpdatePipelineRequest
impl Clone for UpdatePipelineRequest
Source§fn clone(&self) -> UpdatePipelineRequest
fn clone(&self) -> UpdatePipelineRequest
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 UpdatePipelineRequest
impl Debug for UpdatePipelineRequest
Source§impl Default for UpdatePipelineRequest
impl Default for UpdatePipelineRequest
Source§fn default() -> UpdatePipelineRequest
fn default() -> UpdatePipelineRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdatePipelineRequest
impl Message for UpdatePipelineRequest
Source§impl PartialEq for UpdatePipelineRequest
impl PartialEq for UpdatePipelineRequest
impl StructuralPartialEq for UpdatePipelineRequest
Auto Trait Implementations§
impl Freeze for UpdatePipelineRequest
impl RefUnwindSafe for UpdatePipelineRequest
impl Send for UpdatePipelineRequest
impl Sync for UpdatePipelineRequest
impl Unpin for UpdatePipelineRequest
impl UnwindSafe for UpdatePipelineRequest
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