pub struct AllocationListStub {Show 26 fields
pub node_name: String,
pub job_type: String,
pub preempted_allocations: Vec<String>,
pub create_index: u64,
pub create_time: i64,
pub modify_time: i64,
pub name: String,
pub namespace: String,
pub task_group: String,
pub task_states: HashMap<String, TaskState>,
pub next_allocation: String,
pub preempted_by_allocation: String,
pub reschedule_tracker: Option<RescheduleTracker>,
pub job_id: String,
pub job_version: u64,
pub allocated_resources: Option<AllocatedResources>,
pub desired_status: String,
pub desired_description: String,
pub client_status: String,
pub modify_index: u64,
pub id: String,
pub eval_id: String,
pub node_id: String,
pub client_description: String,
pub deployment_status: Option<AllocDeploymentStatus>,
pub followup_eval_id: String,
}
Expand description
AllocationListStub is used to return a subset of an allocation during list operations.
This struct was generated based on the Go types of the official Nomad API.
Fields§
§node_name: String
§job_type: String
§preempted_allocations: Vec<String>
§create_index: u64
§create_time: i64
§modify_time: i64
§name: String
§namespace: String
§task_group: String
§task_states: HashMap<String, TaskState>
§next_allocation: String
§preempted_by_allocation: String
§reschedule_tracker: Option<RescheduleTracker>
§job_id: String
§job_version: u64
§allocated_resources: Option<AllocatedResources>
§desired_status: String
§desired_description: String
§client_status: String
§modify_index: u64
§id: String
§eval_id: String
§node_id: String
§client_description: String
§deployment_status: Option<AllocDeploymentStatus>
§followup_eval_id: String
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
Source§impl PartialEq for AllocationListStub
impl PartialEq for AllocationListStub
Source§impl Serialize for AllocationListStub
impl Serialize for AllocationListStub
impl StructuralPartialEq for AllocationListStub
Auto Trait Implementations§
impl Freeze for AllocationListStub
impl RefUnwindSafe for AllocationListStub
impl Send for AllocationListStub
impl Sync for AllocationListStub
impl Unpin for AllocationListStub
impl UnwindSafe for AllocationListStub
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