pub struct AllocationListStub {Show 26 fields
pub id: String,
pub eval_id: String,
pub name: String,
pub namespace: String,
pub node_id: String,
pub node_name: String,
pub job_id: String,
pub job_type: String,
pub job_version: u64,
pub task_group: String,
pub allocated_resources: Option<AllocatedResources>,
pub desired_status: String,
pub desired_description: String,
pub client_status: String,
pub client_description: String,
pub task_states: HashMap<String, TaskState>,
pub deployment_status: Option<AllocDeploymentStatus>,
pub followup_eval_id: String,
pub next_allocation: String,
pub reschedule_tracker: Option<RescheduleTracker>,
pub preempted_allocations: Vec<String>,
pub preempted_by_allocation: String,
pub create_index: u64,
pub modify_index: u64,
pub create_time: i64,
pub modify_time: i64,
}
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 client.
Fields§
§id: String
§eval_id: String
§name: String
§namespace: String
§node_id: String
§node_name: String
§job_id: String
§job_type: String
§job_version: u64
§task_group: String
§allocated_resources: Option<AllocatedResources>
§desired_status: String
§desired_description: String
§client_status: String
§client_description: String
§task_states: HashMap<String, TaskState>
§deployment_status: Option<AllocDeploymentStatus>
§followup_eval_id: String
§next_allocation: String
§reschedule_tracker: Option<RescheduleTracker>
§preempted_allocations: Vec<String>
§preempted_by_allocation: String
§create_index: u64
§modify_index: u64
§create_time: i64
§modify_time: i64
Implementations§
Source§impl AllocationListStub
impl AllocationListStub
pub fn builder() -> AllocationListStubBuilder
Trait Implementations§
Source§impl Clone for AllocationListStub
impl Clone for AllocationListStub
Source§fn clone(&self) -> AllocationListStub
fn clone(&self) -> AllocationListStub
Returns a duplicate 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