#[non_exhaustive]pub struct AllocationAggregateReservationReservedResourceInfo {
pub accelerator: Option<AllocationAggregateReservationReservedResourceInfoAccelerator>,
/* private fields */
}Available on crate features
future-reservations or region-commitments or reservations only.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.accelerator: Option<AllocationAggregateReservationReservedResourceInfoAccelerator>Properties of accelerator resources in this reservation.
Implementations§
Source§impl AllocationAggregateReservationReservedResourceInfo
impl AllocationAggregateReservationReservedResourceInfo
pub fn new() -> Self
Sourcepub fn set_accelerator<T>(self, v: T) -> Self
pub fn set_accelerator<T>(self, v: T) -> Self
Sets the value of accelerator.
§Example
ⓘ
use google_cloud_compute_v1::model::AllocationAggregateReservationReservedResourceInfoAccelerator;
let x = AllocationAggregateReservationReservedResourceInfo::new().set_accelerator(AllocationAggregateReservationReservedResourceInfoAccelerator::default()/* use setters */);Sourcepub fn set_or_clear_accelerator<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_accelerator<T>(self, v: Option<T>) -> Self
Sets or clears the value of accelerator.
§Example
ⓘ
use google_cloud_compute_v1::model::AllocationAggregateReservationReservedResourceInfoAccelerator;
let x = AllocationAggregateReservationReservedResourceInfo::new().set_or_clear_accelerator(Some(AllocationAggregateReservationReservedResourceInfoAccelerator::default()/* use setters */));
let x = AllocationAggregateReservationReservedResourceInfo::new().set_or_clear_accelerator(None::<AllocationAggregateReservationReservedResourceInfoAccelerator>);Trait Implementations§
Source§impl Clone for AllocationAggregateReservationReservedResourceInfo
impl Clone for AllocationAggregateReservationReservedResourceInfo
Source§fn clone(&self) -> AllocationAggregateReservationReservedResourceInfo
fn clone(&self) -> AllocationAggregateReservationReservedResourceInfo
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 Default for AllocationAggregateReservationReservedResourceInfo
impl Default for AllocationAggregateReservationReservedResourceInfo
Source§fn default() -> AllocationAggregateReservationReservedResourceInfo
fn default() -> AllocationAggregateReservationReservedResourceInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for AllocationAggregateReservationReservedResourceInfo
impl PartialEq for AllocationAggregateReservationReservedResourceInfo
Source§fn eq(&self, other: &AllocationAggregateReservationReservedResourceInfo) -> bool
fn eq(&self, other: &AllocationAggregateReservationReservedResourceInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AllocationAggregateReservationReservedResourceInfo
Auto Trait Implementations§
impl Freeze for AllocationAggregateReservationReservedResourceInfo
impl RefUnwindSafe for AllocationAggregateReservationReservedResourceInfo
impl Send for AllocationAggregateReservationReservedResourceInfo
impl Sync for AllocationAggregateReservationReservedResourceInfo
impl Unpin for AllocationAggregateReservationReservedResourceInfo
impl UnwindSafe for AllocationAggregateReservationReservedResourceInfo
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