pub struct AllocationListStub {Show 24 fields
pub id: Option<String>,
pub eval_id: Option<String>,
pub name: Option<String>,
pub namespace: Option<String>,
pub node_id: Option<String>,
pub node_name: Option<String>,
pub job_id: Option<String>,
pub job_type: Option<String>,
pub job_version: Option<i32>,
pub task_group: Option<String>,
pub desired_status: Option<String>,
pub desired_description: Option<String>,
pub client_status: Option<String>,
pub client_description: Option<String>,
pub task_states: Option<HashMap<String, TaskState>>,
pub deployment_status: Option<AllocDeploymentStatus>,
pub followup_eval_id: Option<String>,
pub reschedule_tracker: Option<RescheduleTracker>,
pub preempted_allocations: Option<Vec<String>>,
pub preempted_by_allocation: Option<String>,
pub create_index: Option<i32>,
pub modify_index: Option<i32>,
pub create_time: Option<i64>,
pub modify_time: Option<i64>,
}Fields§
§id: Option<String>§eval_id: Option<String>§name: Option<String>§namespace: Option<String>§node_id: Option<String>§node_name: Option<String>§job_id: Option<String>§job_type: Option<String>§job_version: Option<i32>§task_group: Option<String>§desired_status: Option<String>§desired_description: Option<String>§client_status: Option<String>§client_description: Option<String>§task_states: Option<HashMap<String, TaskState>>§deployment_status: Option<AllocDeploymentStatus>§followup_eval_id: Option<String>§reschedule_tracker: Option<RescheduleTracker>§preempted_allocations: Option<Vec<String>>§preempted_by_allocation: Option<String>§create_index: Option<i32>§modify_index: Option<i32>§create_time: Option<i64>§modify_time: Option<i64>Implementations§
source§impl AllocationListStub
impl AllocationListStub
pub fn get_task_state(&self, name: &str) -> Option<&TaskState>
Trait Implementations§
source§impl Clone for AllocationListStub
impl Clone for AllocationListStub
source§fn clone(&self) -> AllocationListStub
fn clone(&self) -> AllocationListStub
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 AllocationListStub
impl Debug for AllocationListStub
source§impl Default for AllocationListStub
impl Default for AllocationListStub
source§fn default() -> AllocationListStub
fn default() -> AllocationListStub
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AllocationListStub
impl<'de> Deserialize<'de> for AllocationListStub
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