#[non_exhaustive]pub struct PreviewFeatureRolloutOperationRolloutInput {
pub name: Option<String>,
pub predefined_rollout_plan: Option<PredefinedRolloutPlan>,
/* private fields */
}Available on crate feature
preview-features only.Expand description
Represents the input for the rollout operation.
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.name: Option<String>The name of the rollout plan Ex. organizations//locations/global/rolloutPlans/ Ex. folders//locations/global/rolloutPlans/ Ex. projects//locations/global/rolloutPlans/.
predefined_rollout_plan: Option<PredefinedRolloutPlan>Predefined rollout plan.
Implementations§
Source§impl PreviewFeatureRolloutOperationRolloutInput
impl PreviewFeatureRolloutOperationRolloutInput
pub fn new() -> Self
Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_predefined_rollout_plan<T>(self, v: T) -> Selfwhere
T: Into<PredefinedRolloutPlan>,
pub fn set_predefined_rollout_plan<T>(self, v: T) -> Selfwhere
T: Into<PredefinedRolloutPlan>,
Sets the value of predefined_rollout_plan.
§Example
ⓘ
use google_cloud_compute_v1::model::preview_feature_rollout_operation_rollout_input::PredefinedRolloutPlan;
let x0 = PreviewFeatureRolloutOperationRolloutInput::new().set_predefined_rollout_plan(PredefinedRolloutPlan::RolloutPlanTwoDayRollout);
let x1 = PreviewFeatureRolloutOperationRolloutInput::new().set_predefined_rollout_plan(PredefinedRolloutPlan::RolloutPlanUnspecified);Sourcepub fn set_or_clear_predefined_rollout_plan<T>(self, v: Option<T>) -> Selfwhere
T: Into<PredefinedRolloutPlan>,
pub fn set_or_clear_predefined_rollout_plan<T>(self, v: Option<T>) -> Selfwhere
T: Into<PredefinedRolloutPlan>,
Sets or clears the value of predefined_rollout_plan.
§Example
ⓘ
use google_cloud_compute_v1::model::preview_feature_rollout_operation_rollout_input::PredefinedRolloutPlan;
let x0 = PreviewFeatureRolloutOperationRolloutInput::new().set_or_clear_predefined_rollout_plan(Some(PredefinedRolloutPlan::RolloutPlanTwoDayRollout));
let x1 = PreviewFeatureRolloutOperationRolloutInput::new().set_or_clear_predefined_rollout_plan(Some(PredefinedRolloutPlan::RolloutPlanUnspecified));
let x_none = PreviewFeatureRolloutOperationRolloutInput::new().set_or_clear_predefined_rollout_plan(None::<PredefinedRolloutPlan>);Trait Implementations§
Source§impl Clone for PreviewFeatureRolloutOperationRolloutInput
impl Clone for PreviewFeatureRolloutOperationRolloutInput
Source§fn clone(&self) -> PreviewFeatureRolloutOperationRolloutInput
fn clone(&self) -> PreviewFeatureRolloutOperationRolloutInput
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 PreviewFeatureRolloutOperationRolloutInput
impl Default for PreviewFeatureRolloutOperationRolloutInput
Source§fn default() -> PreviewFeatureRolloutOperationRolloutInput
fn default() -> PreviewFeatureRolloutOperationRolloutInput
Returns the “default value” for a type. Read more
Source§impl PartialEq for PreviewFeatureRolloutOperationRolloutInput
impl PartialEq for PreviewFeatureRolloutOperationRolloutInput
Source§fn eq(&self, other: &PreviewFeatureRolloutOperationRolloutInput) -> bool
fn eq(&self, other: &PreviewFeatureRolloutOperationRolloutInput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PreviewFeatureRolloutOperationRolloutInput
Auto Trait Implementations§
impl Freeze for PreviewFeatureRolloutOperationRolloutInput
impl RefUnwindSafe for PreviewFeatureRolloutOperationRolloutInput
impl Send for PreviewFeatureRolloutOperationRolloutInput
impl Sync for PreviewFeatureRolloutOperationRolloutInput
impl Unpin for PreviewFeatureRolloutOperationRolloutInput
impl UnwindSafe for PreviewFeatureRolloutOperationRolloutInput
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