Struct nomad_client_rs::models::job::Job

source ·
pub struct Job {
Show 32 fields pub stop: Option<bool>, pub region: Option<String>, pub namespace: Option<String>, pub id: Option<String>, pub parent_id: Option<String>, pub name: Option<String>, pub type: Option<String>, pub priority: Option<i32>, pub all_at_once: Option<bool>, pub datacenters: Option<Vec<String>>, pub constraints: Option<Vec<Constraint>>, pub affinities: Option<Vec<Affinity>>, pub task_groups: Option<Vec<TaskGroup>>, pub update: Option<UpdateStrategy>, pub spreads: Option<Vec<Spread>>, pub periodic: Option<PeriodicConfig>, pub parameterized_job: Option<ParameterizedJobConfig>, pub dispatched: Option<bool>, pub payload: Option<String>, pub reschedule: Option<ReschedulePolicy>, pub migrate: Option<MigrateStrategy>, pub meta: Option<HashMap<String, String>>, pub consul_token: Option<String>, pub vault_token: Option<String>, pub status: Option<String>, pub status_description: Option<String>, pub stable: Option<bool>, pub version: Option<i32>, pub submit_time: Option<i64>, pub create_index: Option<i32>, pub modify_index: Option<i32>, pub job_modify_index: Option<i32>,
}

Fields§

§stop: Option<bool>§region: Option<String>§namespace: Option<String>§id: Option<String>§parent_id: Option<String>§name: Option<String>§type: Option<String>§priority: Option<i32>§all_at_once: Option<bool>§datacenters: Option<Vec<String>>§constraints: Option<Vec<Constraint>>§affinities: Option<Vec<Affinity>>§task_groups: Option<Vec<TaskGroup>>§update: Option<UpdateStrategy>§spreads: Option<Vec<Spread>>§periodic: Option<PeriodicConfig>§parameterized_job: Option<ParameterizedJobConfig>§dispatched: Option<bool>§payload: Option<String>§reschedule: Option<ReschedulePolicy>§migrate: Option<MigrateStrategy>§meta: Option<HashMap<String, String>>§consul_token: Option<String>§vault_token: Option<String>§status: Option<String>§status_description: Option<String>§stable: Option<bool>§version: Option<i32>§submit_time: Option<i64>§create_index: Option<i32>§modify_index: Option<i32>§job_modify_index: Option<i32>

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