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<Job>, pub task_group: Option<String>, pub resources: Option<Resources>, pub task_resources: Option<HashMap<String, Resources>>, pub allocated_resources: Option<AllocatedResources>, pub services: Option<HashMap<String, String>>, pub metrics: Option<AllocationMetric>, pub desired_status: Option<String>, pub desired_description: Option<String>, pub desired_transition: Option<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<AllocDeploymentStatus>, pub followup_eval_id: Option<String>, pub previous_allocation: Option<String>, pub next_allocation: 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 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<Job>§task_group: Option<String>§resources: Option<Resources>§task_resources: Option<HashMap<String, Resources>>§allocated_resources: Option<AllocatedResources>§services: Option<HashMap<String, String>>§metrics: Option<AllocationMetric>§desired_status: Option<String>§desired_description: Option<String>§desired_transition: Option<DesiredTransition>§client_status: Option<String>§client_description: Option<String>§task_states: Option<HashMap<String, TaskState>>§deployment_id: Option<String>§deployment_status: Option<AllocDeploymentStatus>§followup_eval_id: Option<String>§previous_allocation: Option<String>§next_allocation: Option<String>§reschedule_tracker: Option<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§

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more