Struct nomad_client::models::allocation::Allocation[][src]

pub struct Allocation {
    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

impl Allocation[src]

pub fn new() -> Allocation[src]

Trait Implementations

impl Clone for Allocation[src]

impl Debug for Allocation[src]

impl<'de> Deserialize<'de> for Allocation[src]

impl PartialEq<Allocation> for Allocation[src]

impl Serialize for Allocation[src]

impl StructuralPartialEq for Allocation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.