#[non_exhaustive]pub struct Strategy {
pub deployment_strategy: Option<DeploymentStrategy>,
/* private fields */
}
Expand description
Strategy contains deployment strategy information.
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.deployment_strategy: Option<DeploymentStrategy>
Deployment strategy details.
Implementations§
Source§impl Strategy
impl Strategy
pub fn new() -> Self
Sourcepub fn set_deployment_strategy<T: Into<Option<DeploymentStrategy>>>(
self,
v: T,
) -> Self
pub fn set_deployment_strategy<T: Into<Option<DeploymentStrategy>>>( self, v: T, ) -> Self
Sets the value of deployment_strategy.
Note that all the setters affecting deployment_strategy
are mutually
exclusive.
Sourcepub fn standard(&self) -> Option<&Box<Standard>>
pub fn standard(&self) -> Option<&Box<Standard>>
The value of deployment_strategy
if it holds a Standard
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_standard<T: Into<Box<Standard>>>(self, v: T) -> Self
pub fn set_standard<T: Into<Box<Standard>>>(self, v: T) -> Self
Sets the value of deployment_strategy
to hold a Standard
.
Note that all the setters affecting deployment_strategy
are
mutually exclusive.
Sourcepub fn canary(&self) -> Option<&Box<Canary>>
pub fn canary(&self) -> Option<&Box<Canary>>
The value of deployment_strategy
if it holds a Canary
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_canary<T: Into<Box<Canary>>>(self, v: T) -> Self
pub fn set_canary<T: Into<Box<Canary>>>(self, v: T) -> Self
Sets the value of deployment_strategy
to hold a Canary
.
Note that all the setters affecting deployment_strategy
are
mutually exclusive.
Trait Implementations§
impl StructuralPartialEq for Strategy
Auto Trait Implementations§
impl Freeze for Strategy
impl RefUnwindSafe for Strategy
impl Send for Strategy
impl Sync for Strategy
impl Unpin for Strategy
impl UnwindSafe for Strategy
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