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§

source§

impl Clone for Job

source§

fn clone(&self) -> Job

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Job

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Job

source§

fn default() -> Job

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Job

source§

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 Serialize for Job

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,