#[non_exhaustive]pub struct ReservationAdvancedDeploymentControl {
pub reservation_operational_mode: Option<ReservationOperationalMode>,
/* private fields */
}Available on crate features
region-commitments or reservations only.Expand description
Advance control for cluster management, applicable only to DENSE deployment type reservations.
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.reservation_operational_mode: Option<ReservationOperationalMode>Indicates chosen reservation operational mode for the reservation.
Implementations§
Source§impl ReservationAdvancedDeploymentControl
impl ReservationAdvancedDeploymentControl
pub fn new() -> Self
Sourcepub fn set_reservation_operational_mode<T>(self, v: T) -> Selfwhere
T: Into<ReservationOperationalMode>,
pub fn set_reservation_operational_mode<T>(self, v: T) -> Selfwhere
T: Into<ReservationOperationalMode>,
Sets the value of reservation_operational_mode.
§Example
ⓘ
use google_cloud_compute_v1::model::reservation_advanced_deployment_control::ReservationOperationalMode;
let x0 = ReservationAdvancedDeploymentControl::new().set_reservation_operational_mode(ReservationOperationalMode::HighlyAvailableCapacity);
let x1 = ReservationAdvancedDeploymentControl::new().set_reservation_operational_mode(ReservationOperationalMode::Unspecified);Sourcepub fn set_or_clear_reservation_operational_mode<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReservationOperationalMode>,
pub fn set_or_clear_reservation_operational_mode<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReservationOperationalMode>,
Sets or clears the value of reservation_operational_mode.
§Example
ⓘ
use google_cloud_compute_v1::model::reservation_advanced_deployment_control::ReservationOperationalMode;
let x0 = ReservationAdvancedDeploymentControl::new().set_or_clear_reservation_operational_mode(Some(ReservationOperationalMode::HighlyAvailableCapacity));
let x1 = ReservationAdvancedDeploymentControl::new().set_or_clear_reservation_operational_mode(Some(ReservationOperationalMode::Unspecified));
let x_none = ReservationAdvancedDeploymentControl::new().set_or_clear_reservation_operational_mode(None::<ReservationOperationalMode>);Trait Implementations§
Source§impl Clone for ReservationAdvancedDeploymentControl
impl Clone for ReservationAdvancedDeploymentControl
Source§fn clone(&self) -> ReservationAdvancedDeploymentControl
fn clone(&self) -> ReservationAdvancedDeploymentControl
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 ReservationAdvancedDeploymentControl
impl Default for ReservationAdvancedDeploymentControl
Source§fn default() -> ReservationAdvancedDeploymentControl
fn default() -> ReservationAdvancedDeploymentControl
Returns the “default value” for a type. Read more
Source§impl PartialEq for ReservationAdvancedDeploymentControl
impl PartialEq for ReservationAdvancedDeploymentControl
Source§fn eq(&self, other: &ReservationAdvancedDeploymentControl) -> bool
fn eq(&self, other: &ReservationAdvancedDeploymentControl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReservationAdvancedDeploymentControl
Auto Trait Implementations§
impl Freeze for ReservationAdvancedDeploymentControl
impl RefUnwindSafe for ReservationAdvancedDeploymentControl
impl Send for ReservationAdvancedDeploymentControl
impl Sync for ReservationAdvancedDeploymentControl
impl Unpin for ReservationAdvancedDeploymentControl
impl UnwindSafe for ReservationAdvancedDeploymentControl
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