#[non_exhaustive]pub struct CanaryDeployment {
pub percentages: Vec<i32>,
pub verify: bool,
pub predeploy: Option<Predeploy>,
pub postdeploy: Option<Postdeploy>,
/* private fields */
}Expand description
CanaryDeployment represents the canary deployment configuration
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.percentages: Vec<i32>Required. The percentage based deployments that will occur as a part of a
Rollout. List is expected in ascending order and each integer n is
0 <= n < 100.
If the GatewayServiceMesh is configured for Kubernetes, then the range for
n is 0 <= n <= 100.
verify: boolOptional. Whether to run verify tests after each percentage deployment via
skaffold verify.
predeploy: Option<Predeploy>Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.
postdeploy: Option<Postdeploy>Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.
Implementations§
Source§impl CanaryDeployment
impl CanaryDeployment
Sourcepub fn set_percentages<T, V>(self, v: T) -> Self
pub fn set_percentages<T, V>(self, v: T) -> Self
Sets the value of percentages.
§Example
let x = CanaryDeployment::new().set_percentages([1, 2, 3]);Sourcepub fn set_verify<T: Into<bool>>(self, v: T) -> Self
pub fn set_verify<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_predeploy<T>(self, v: T) -> Self
pub fn set_predeploy<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_predeploy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_predeploy<T>(self, v: Option<T>) -> Self
Sourcepub fn set_postdeploy<T>(self, v: T) -> Selfwhere
T: Into<Postdeploy>,
pub fn set_postdeploy<T>(self, v: T) -> Selfwhere
T: Into<Postdeploy>,
Sets the value of postdeploy.
§Example
use google_cloud_deploy_v1::model::Postdeploy;
let x = CanaryDeployment::new().set_postdeploy(Postdeploy::default()/* use setters */);Sourcepub fn set_or_clear_postdeploy<T>(self, v: Option<T>) -> Selfwhere
T: Into<Postdeploy>,
pub fn set_or_clear_postdeploy<T>(self, v: Option<T>) -> Selfwhere
T: Into<Postdeploy>,
Sets or clears the value of postdeploy.
§Example
use google_cloud_deploy_v1::model::Postdeploy;
let x = CanaryDeployment::new().set_or_clear_postdeploy(Some(Postdeploy::default()/* use setters */));
let x = CanaryDeployment::new().set_or_clear_postdeploy(None::<Postdeploy>);Trait Implementations§
Source§impl Clone for CanaryDeployment
impl Clone for CanaryDeployment
Source§fn clone(&self) -> CanaryDeployment
fn clone(&self) -> CanaryDeployment
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CanaryDeployment
impl Debug for CanaryDeployment
Source§impl Default for CanaryDeployment
impl Default for CanaryDeployment
Source§fn default() -> CanaryDeployment
fn default() -> CanaryDeployment
Source§impl Message for CanaryDeployment
impl Message for CanaryDeployment
Source§impl PartialEq for CanaryDeployment
impl PartialEq for CanaryDeployment
impl StructuralPartialEq for CanaryDeployment
Auto Trait Implementations§
impl Freeze for CanaryDeployment
impl RefUnwindSafe for CanaryDeployment
impl Send for CanaryDeployment
impl Sync for CanaryDeployment
impl Unpin for CanaryDeployment
impl UnsafeUnpin for CanaryDeployment
impl UnwindSafe for CanaryDeployment
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request