pub struct DeploymentState {
pub progress_deadline: TimeDelta,
pub promoted: bool,
pub healthy_allocs: i64,
pub unhealthy_allocs: i64,
pub placed_canaries: Vec<String>,
pub auto_revert: bool,
pub require_progress_by: DateTime<Utc>,
pub desired_canaries: i64,
pub desired_total: i64,
pub placed_allocs: i64,
}
Expand description
DeploymentState tracks the state of a deployment for a given task group.
This struct was generated based on the Go types of the official Nomad API.
Fields§
§progress_deadline: TimeDelta
§promoted: bool
§healthy_allocs: i64
§unhealthy_allocs: i64
§placed_canaries: Vec<String>
§auto_revert: bool
§require_progress_by: DateTime<Utc>
§desired_canaries: i64
§desired_total: i64
§placed_allocs: i64
Trait Implementations§
Source§impl Clone for DeploymentState
impl Clone for DeploymentState
Source§fn clone(&self) -> DeploymentState
fn clone(&self) -> DeploymentState
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 moreSource§impl Debug for DeploymentState
impl Debug for DeploymentState
Source§impl Default for DeploymentState
impl Default for DeploymentState
Source§fn default() -> DeploymentState
fn default() -> DeploymentState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeploymentState
impl<'de> Deserialize<'de> for DeploymentState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DeploymentState
impl PartialEq for DeploymentState
Source§impl Serialize for DeploymentState
impl Serialize for DeploymentState
impl StructuralPartialEq for DeploymentState
Auto Trait Implementations§
impl Freeze for DeploymentState
impl RefUnwindSafe for DeploymentState
impl Send for DeploymentState
impl Sync for DeploymentState
impl Unpin for DeploymentState
impl UnwindSafe for DeploymentState
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