#[non_exhaustive]pub struct Stage {
pub target_id: String,
pub profiles: Vec<String>,
pub strategy: Option<Strategy>,
pub deploy_parameters: Vec<DeployParameters>,
/* private fields */
}Expand description
Stage specifies a location to which to deploy.
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.target_id: StringOptional. The target_id to which this stage points. This field refers
exclusively to the last segment of a target name. For example, this field
would just be my-target (rather than
projects/project/locations/location/targets/my-target). The location of
the Target is inferred to be the same as the location of the
DeliveryPipeline that contains this Stage.
profiles: Vec<String>Optional. Skaffold profiles to use when rendering the manifest for this
stage’s Target.
strategy: Option<Strategy>Optional. The strategy to use for a Rollout to this stage.
deploy_parameters: Vec<DeployParameters>Optional. The deploy parameters to use for the target in this stage.
Implementations§
Source§impl Stage
impl Stage
pub fn new() -> Self
Sourcepub fn set_target_id<T: Into<String>>(self, v: T) -> Self
pub fn set_target_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_profiles<T, V>(self, v: T) -> Self
pub fn set_profiles<T, V>(self, v: T) -> Self
Sourcepub fn set_strategy<T>(self, v: T) -> Self
pub fn set_strategy<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_strategy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_strategy<T>(self, v: Option<T>) -> Self
Sourcepub fn set_deploy_parameters<T, V>(self, v: T) -> Self
pub fn set_deploy_parameters<T, V>(self, v: T) -> Self
Sets the value of deploy_parameters.
§Example
ⓘ
use google_cloud_deploy_v1::model::DeployParameters;
let x = Stage::new()
.set_deploy_parameters([
DeployParameters::default()/* use setters */,
DeployParameters::default()/* use (different) setters */,
]);Trait Implementations§
impl StructuralPartialEq for Stage
Auto Trait Implementations§
impl Freeze for Stage
impl RefUnwindSafe for Stage
impl Send for Stage
impl Sync for Stage
impl Unpin for Stage
impl UnwindSafe for Stage
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