pub struct DeploymentStateBuilder { /* private fields */ }
Expand description
Builder for DeploymentState
.
Implementations§
Source§impl DeploymentStateBuilder
impl DeploymentStateBuilder
pub fn placed_canaries(&mut self, value: Vec<String>) -> &mut Self
pub fn auto_revert(&mut self, value: bool) -> &mut Self
pub fn progress_deadline(&mut self, value: TimeDelta) -> &mut Self
pub fn require_progress_by(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn promoted(&mut self, value: bool) -> &mut Self
pub fn desired_canaries(&mut self, value: i64) -> &mut Self
pub fn desired_total(&mut self, value: i64) -> &mut Self
pub fn placed_allocs(&mut self, value: i64) -> &mut Self
pub fn healthy_allocs(&mut self, value: i64) -> &mut Self
pub fn unhealthy_allocs(&mut self, value: i64) -> &mut Self
Sourcepub fn build(&self) -> Result<DeploymentState, DeploymentStateBuilderError>
pub fn build(&self) -> Result<DeploymentState, DeploymentStateBuilderError>
Trait Implementations§
Source§impl Clone for DeploymentStateBuilder
impl Clone for DeploymentStateBuilder
Source§fn clone(&self) -> DeploymentStateBuilder
fn clone(&self) -> DeploymentStateBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for DeploymentStateBuilder
impl RefUnwindSafe for DeploymentStateBuilder
impl Send for DeploymentStateBuilder
impl Sync for DeploymentStateBuilder
impl Unpin for DeploymentStateBuilder
impl UnwindSafe for DeploymentStateBuilder
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