#[non_exhaustive]pub struct UpdateWorkerPoolRequest {
pub worker_pool: Option<WorkerPool>,
pub update_mask: Option<FieldMask>,
pub validate_only: bool,
/* private fields */
}Expand description
Request to update a WorkerPool.
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.worker_pool: Option<WorkerPool>Required. The WorkerPool to update.
The name field is used to identify the WorkerPool to update.
Format: projects/{project}/locations/{location}/workerPools/{workerPool}.
update_mask: Option<FieldMask>Optional. A mask specifying which fields in worker_pool to update.
validate_only: boolIf set, validate the request and preview the response, but do not actually post it.
Implementations§
Source§impl UpdateWorkerPoolRequest
impl UpdateWorkerPoolRequest
pub fn new() -> Self
Sourcepub fn set_worker_pool<T>(self, v: T) -> Selfwhere
T: Into<WorkerPool>,
pub fn set_worker_pool<T>(self, v: T) -> Selfwhere
T: Into<WorkerPool>,
Sets the value of worker_pool.
§Example
ⓘ
use google_cloud_build_v1::model::WorkerPool;
let x = UpdateWorkerPoolRequest::new().set_worker_pool(WorkerPool::default()/* use setters */);Sourcepub fn set_or_clear_worker_pool<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkerPool>,
pub fn set_or_clear_worker_pool<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkerPool>,
Sets or clears the value of worker_pool.
§Example
ⓘ
use google_cloud_build_v1::model::WorkerPool;
let x = UpdateWorkerPoolRequest::new().set_or_clear_worker_pool(Some(WorkerPool::default()/* use setters */));
let x = UpdateWorkerPoolRequest::new().set_or_clear_worker_pool(None::<WorkerPool>);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 = UpdateWorkerPoolRequest::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 = UpdateWorkerPoolRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateWorkerPoolRequest::new().set_or_clear_update_mask(None::<FieldMask>);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 = UpdateWorkerPoolRequest::new().set_validate_only(true);Trait Implementations§
Source§impl Clone for UpdateWorkerPoolRequest
impl Clone for UpdateWorkerPoolRequest
Source§fn clone(&self) -> UpdateWorkerPoolRequest
fn clone(&self) -> UpdateWorkerPoolRequest
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 UpdateWorkerPoolRequest
impl Debug for UpdateWorkerPoolRequest
Source§impl Default for UpdateWorkerPoolRequest
impl Default for UpdateWorkerPoolRequest
Source§fn default() -> UpdateWorkerPoolRequest
fn default() -> UpdateWorkerPoolRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateWorkerPoolRequest
impl Message for UpdateWorkerPoolRequest
Source§impl PartialEq for UpdateWorkerPoolRequest
impl PartialEq for UpdateWorkerPoolRequest
impl StructuralPartialEq for UpdateWorkerPoolRequest
Auto Trait Implementations§
impl Freeze for UpdateWorkerPoolRequest
impl RefUnwindSafe for UpdateWorkerPoolRequest
impl Send for UpdateWorkerPoolRequest
impl Sync for UpdateWorkerPoolRequest
impl Unpin for UpdateWorkerPoolRequest
impl UnwindSafe for UpdateWorkerPoolRequest
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