#[non_exhaustive]pub struct UpdateCapacityCommitmentRequest {
pub capacity_commitment: Option<CapacityCommitment>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
The request for ReservationService.UpdateCapacityCommitment.
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.capacity_commitment: Option<CapacityCommitment>Content of the capacity commitment to update.
update_mask: Option<FieldMask>Standard field mask for the set of fields to be updated.
Implementations§
Source§impl UpdateCapacityCommitmentRequest
impl UpdateCapacityCommitmentRequest
Sourcepub fn set_capacity_commitment<T>(self, v: T) -> Selfwhere
T: Into<CapacityCommitment>,
pub fn set_capacity_commitment<T>(self, v: T) -> Selfwhere
T: Into<CapacityCommitment>,
Sets the value of capacity_commitment.
§Example
ⓘ
use google_cloud_bigquery_reservation_v1::model::CapacityCommitment;
let x = UpdateCapacityCommitmentRequest::new().set_capacity_commitment(CapacityCommitment::default()/* use setters */);Sourcepub fn set_or_clear_capacity_commitment<T>(self, v: Option<T>) -> Selfwhere
T: Into<CapacityCommitment>,
pub fn set_or_clear_capacity_commitment<T>(self, v: Option<T>) -> Selfwhere
T: Into<CapacityCommitment>,
Sets or clears the value of capacity_commitment.
§Example
ⓘ
use google_cloud_bigquery_reservation_v1::model::CapacityCommitment;
let x = UpdateCapacityCommitmentRequest::new().set_or_clear_capacity_commitment(Some(CapacityCommitment::default()/* use setters */));
let x = UpdateCapacityCommitmentRequest::new().set_or_clear_capacity_commitment(None::<CapacityCommitment>);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 = UpdateCapacityCommitmentRequest::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 = UpdateCapacityCommitmentRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateCapacityCommitmentRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateCapacityCommitmentRequest
impl Clone for UpdateCapacityCommitmentRequest
Source§fn clone(&self) -> UpdateCapacityCommitmentRequest
fn clone(&self) -> UpdateCapacityCommitmentRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for UpdateCapacityCommitmentRequest
impl Default for UpdateCapacityCommitmentRequest
Source§fn default() -> UpdateCapacityCommitmentRequest
fn default() -> UpdateCapacityCommitmentRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for UpdateCapacityCommitmentRequest
Auto Trait Implementations§
impl Freeze for UpdateCapacityCommitmentRequest
impl RefUnwindSafe for UpdateCapacityCommitmentRequest
impl Send for UpdateCapacityCommitmentRequest
impl Sync for UpdateCapacityCommitmentRequest
impl Unpin for UpdateCapacityCommitmentRequest
impl UnsafeUnpin for UpdateCapacityCommitmentRequest
impl UnwindSafe for UpdateCapacityCommitmentRequest
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