#[non_exhaustive]pub struct SplitCapacityCommitmentResponse {
pub first: Option<CapacityCommitment>,
pub second: Option<CapacityCommitment>,
/* private fields */
}Expand description
The response for ReservationService.SplitCapacityCommitment.
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.first: Option<CapacityCommitment>First capacity commitment, result of a split.
second: Option<CapacityCommitment>Second capacity commitment, result of a split.
Implementations§
Source§impl SplitCapacityCommitmentResponse
impl SplitCapacityCommitmentResponse
Sourcepub fn set_first<T>(self, v: T) -> Selfwhere
T: Into<CapacityCommitment>,
pub fn set_first<T>(self, v: T) -> Selfwhere
T: Into<CapacityCommitment>,
Sourcepub fn set_or_clear_first<T>(self, v: Option<T>) -> Selfwhere
T: Into<CapacityCommitment>,
pub fn set_or_clear_first<T>(self, v: Option<T>) -> Selfwhere
T: Into<CapacityCommitment>,
Sets or clears the value of first.
§Example
ⓘ
use google_cloud_bigquery_reservation_v1::model::CapacityCommitment;
let x = SplitCapacityCommitmentResponse::new().set_or_clear_first(Some(CapacityCommitment::default()/* use setters */));
let x = SplitCapacityCommitmentResponse::new().set_or_clear_first(None::<CapacityCommitment>);Sourcepub fn set_second<T>(self, v: T) -> Selfwhere
T: Into<CapacityCommitment>,
pub fn set_second<T>(self, v: T) -> Selfwhere
T: Into<CapacityCommitment>,
Sourcepub fn set_or_clear_second<T>(self, v: Option<T>) -> Selfwhere
T: Into<CapacityCommitment>,
pub fn set_or_clear_second<T>(self, v: Option<T>) -> Selfwhere
T: Into<CapacityCommitment>,
Sets or clears the value of second.
§Example
ⓘ
use google_cloud_bigquery_reservation_v1::model::CapacityCommitment;
let x = SplitCapacityCommitmentResponse::new().set_or_clear_second(Some(CapacityCommitment::default()/* use setters */));
let x = SplitCapacityCommitmentResponse::new().set_or_clear_second(None::<CapacityCommitment>);Trait Implementations§
Source§impl Clone for SplitCapacityCommitmentResponse
impl Clone for SplitCapacityCommitmentResponse
Source§fn clone(&self) -> SplitCapacityCommitmentResponse
fn clone(&self) -> SplitCapacityCommitmentResponse
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 SplitCapacityCommitmentResponse
impl Default for SplitCapacityCommitmentResponse
Source§fn default() -> SplitCapacityCommitmentResponse
fn default() -> SplitCapacityCommitmentResponse
Returns the “default value” for a type. Read more
impl StructuralPartialEq for SplitCapacityCommitmentResponse
Auto Trait Implementations§
impl Freeze for SplitCapacityCommitmentResponse
impl RefUnwindSafe for SplitCapacityCommitmentResponse
impl Send for SplitCapacityCommitmentResponse
impl Sync for SplitCapacityCommitmentResponse
impl Unpin for SplitCapacityCommitmentResponse
impl UnsafeUnpin for SplitCapacityCommitmentResponse
impl UnwindSafe for SplitCapacityCommitmentResponse
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