Struct nomad_client::models::allocation::Allocation
source · pub struct Allocation {Show 33 fields
pub ID: Option<String>,
pub namespace: Option<String>,
pub eval_id: Option<String>,
pub name: Option<String>,
pub node_id: Option<String>,
pub node_name: Option<String>,
pub job_id: Option<String>,
pub job: Option<Box<Job>>,
pub task_group: Option<String>,
pub resources: Option<Box<Resources>>,
pub task_resources: Option<HashMap<String, Resources>>,
pub allocated_resources: Option<Box<AllocatedResources>>,
pub services: Option<HashMap<String, String>>,
pub metrics: Option<Box<AllocationMetric>>,
pub desired_status: Option<String>,
pub desired_description: Option<String>,
pub desired_transition: Option<Box<DesiredTransition>>,
pub client_status: Option<String>,
pub client_description: Option<String>,
pub task_states: Option<HashMap<String, TaskState>>,
pub deployment_id: Option<String>,
pub deployment_status: Option<Box<AllocDeploymentStatus>>,
pub followup_eval_id: Option<String>,
pub previous_allocation: Option<String>,
pub next_allocation: Option<String>,
pub reschedule_tracker: Option<Box<RescheduleTracker>>,
pub preempted_allocations: Option<Vec<String>>,
pub preempted_by_allocation: Option<String>,
pub create_index: Option<i32>,
pub modify_index: Option<i32>,
pub alloc_modify_index: Option<i32>,
pub create_time: Option<i64>,
pub modify_time: Option<i64>,
}
Fields§
§ID: Option<String>
§namespace: Option<String>
§eval_id: Option<String>
§name: Option<String>
§node_id: Option<String>
§node_name: Option<String>
§job_id: Option<String>
§job: Option<Box<Job>>
§task_group: Option<String>
§resources: Option<Box<Resources>>
§task_resources: Option<HashMap<String, Resources>>
§allocated_resources: Option<Box<AllocatedResources>>
§services: Option<HashMap<String, String>>
§metrics: Option<Box<AllocationMetric>>
§desired_status: Option<String>
§desired_description: Option<String>
§desired_transition: Option<Box<DesiredTransition>>
§client_status: Option<String>
§client_description: Option<String>
§task_states: Option<HashMap<String, TaskState>>
§deployment_id: Option<String>
§deployment_status: Option<Box<AllocDeploymentStatus>>
§followup_eval_id: Option<String>
§previous_allocation: Option<String>
§next_allocation: Option<String>
§reschedule_tracker: Option<Box<RescheduleTracker>>
§preempted_allocations: Option<Vec<String>>
§preempted_by_allocation: Option<String>
§create_index: Option<i32>
§modify_index: Option<i32>
§alloc_modify_index: Option<i32>
§create_time: Option<i64>
§modify_time: Option<i64>
Implementations§
source§impl Allocation
impl Allocation
pub fn new() -> Allocation
Trait Implementations§
source§impl Clone for Allocation
impl Clone for Allocation
source§fn clone(&self) -> Allocation
fn clone(&self) -> Allocation
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 Allocation
impl Debug for Allocation
source§impl<'de> Deserialize<'de> for Allocation
impl<'de> Deserialize<'de> for Allocation
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<Allocation> for Allocation
impl PartialEq<Allocation> for Allocation
source§fn eq(&self, other: &Allocation) -> bool
fn eq(&self, other: &Allocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.