pub struct Job {Show 37 fields
pub affinities: Option<Vec<Affinity>>,
pub all_at_once: Option<bool>,
pub constraints: Option<Vec<Constraint>>,
pub consul_namespace: Option<String>,
pub consul_token: Option<String>,
pub create_index: Option<i32>,
pub datacenters: Option<Vec<String>>,
pub dispatch_idempotency_token: Option<String>,
pub dispatched: Option<bool>,
pub id: Option<String>,
pub job_modify_index: Option<i32>,
pub meta: Option<HashMap<String, String>>,
pub migrate: Option<MigrateStrategy>,
pub modify_index: Option<i32>,
pub multiregion: Option<Multiregion>,
pub name: Option<String>,
pub namespace: Option<String>,
pub nomad_token_id: Option<String>,
pub parameterized_job: Option<ParameterizedJobConfig>,
pub parent_id: Option<String>,
pub payload: Option<String>,
pub periodic: Option<PeriodicConfig>,
pub priority: Option<i32>,
pub region: Option<String>,
pub reschedule: Option<ReschedulePolicy>,
pub spreads: Option<Vec<Spread>>,
pub stable: Option<bool>,
pub status: Option<String>,
pub status_description: Option<String>,
pub stop: Option<bool>,
pub submit_time: Option<i64>,
pub task_groups: Option<Vec<TaskGroup>>,
pub _type: Option<String>,
pub update: Option<UpdateStrategy>,
pub vault_namespace: Option<String>,
pub vault_token: Option<String>,
pub version: Option<i32>,
}Fields§
§affinities: Option<Vec<Affinity>>§all_at_once: Option<bool>§constraints: Option<Vec<Constraint>>§consul_namespace: Option<String>§consul_token: Option<String>§create_index: Option<i32>§datacenters: Option<Vec<String>>§dispatch_idempotency_token: Option<String>§dispatched: Option<bool>§id: Option<String>§job_modify_index: Option<i32>§meta: Option<HashMap<String, String>>§migrate: Option<MigrateStrategy>§modify_index: Option<i32>§multiregion: Option<Multiregion>§name: Option<String>§namespace: Option<String>§nomad_token_id: Option<String>§parameterized_job: Option<ParameterizedJobConfig>§parent_id: Option<String>§payload: Option<String>§periodic: Option<PeriodicConfig>§priority: Option<i32>§region: Option<String>§reschedule: Option<ReschedulePolicy>§spreads: Option<Vec<Spread>>§stable: Option<bool>§status: Option<String>§status_description: Option<String>§stop: Option<bool>§submit_time: Option<i64>§task_groups: Option<Vec<TaskGroup>>§_type: Option<String>§update: Option<UpdateStrategy>§vault_namespace: Option<String>§vault_token: Option<String>§version: Option<i32>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
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
impl StructuralPartialEq for Job
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnwindSafe for Job
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