pub struct Evaluation {Show 29 fields
pub priority: i64,
pub namespace: String,
pub deployment_id: String,
pub snapshot_index: u64,
pub id: String,
pub job_id: String,
pub node_modify_index: u64,
pub class_eligibility: HashMap<String, bool>,
pub node_id: String,
pub wait_until: DateTime<Utc>,
pub related_evals: Vec<EvaluationStub>,
pub failed_tg_allocs: HashMap<String, AllocationMetric>,
pub status: String,
pub wait: TimeDelta,
pub next_eval: String,
pub previous_eval: String,
pub annotate_plan: bool,
pub queued_allocations: HashMap<String, i64>,
pub create_index: u64,
pub type: String,
pub status_description: String,
pub modify_time: i64,
pub job_modify_index: u64,
pub quota_limit_reached: String,
pub modify_index: u64,
pub create_time: i64,
pub blocked_eval: String,
pub triggered_by: String,
pub escaped_computed_class: bool,
}
Expand description
Evaluation is used to serialize an evaluation.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§priority: i64
§namespace: String
§deployment_id: String
§snapshot_index: u64
§id: String
§job_id: String
§node_modify_index: u64
§class_eligibility: HashMap<String, bool>
§node_id: String
§wait_until: DateTime<Utc>
§failed_tg_allocs: HashMap<String, AllocationMetric>
§status: String
§wait: TimeDelta
§next_eval: String
§previous_eval: String
§annotate_plan: bool
§queued_allocations: HashMap<String, i64>
§create_index: u64
§type: String
§status_description: String
§modify_time: i64
§job_modify_index: u64
§quota_limit_reached: String
§modify_index: u64
§create_time: i64
§blocked_eval: String
§triggered_by: String
§escaped_computed_class: bool
Implementations§
Source§impl Evaluation
impl Evaluation
pub fn builder() -> EvaluationBuilder
Trait Implementations§
Source§impl Clone for Evaluation
impl Clone for Evaluation
Source§fn clone(&self) -> Evaluation
fn clone(&self) -> Evaluation
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 Evaluation
impl Debug for Evaluation
Source§impl<'de> Deserialize<'de> for Evaluation
impl<'de> Deserialize<'de> for Evaluation
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 Evaluation
impl PartialEq for Evaluation
Source§impl Serialize for Evaluation
impl Serialize for Evaluation
impl StructuralPartialEq for Evaluation
Auto Trait Implementations§
impl Freeze for Evaluation
impl RefUnwindSafe for Evaluation
impl Send for Evaluation
impl Sync for Evaluation
impl Unpin for Evaluation
impl UnwindSafe for Evaluation
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