pub struct JobSubmission {
pub format: String,
pub variable_flags: HashMap<String, String>,
pub variables: String,
pub source: String,
}
Expand description
JobSubmission is used to hold information about the original content of a job specification being submitted to Nomad.
At any time a JobSubmission may be nil, indicating no information is known about the job submission.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§format: String
Format indicates what the Source content was (hcl1, hcl2, or json). HCL1 jobs can no longer be parsed.
variable_flags: HashMap<String, String>
VariableFlags contains the CLI “-var” flag arguments as submitted with the job (hcl2 only).
variables: String
Variables contains the opaque variables configuration as coming from a var-file or the WebUI variables input (hcl2 only).
source: String
Source contains the original job definition (may be in the format of hcl1, hcl2, or json). HCL1 jobs can no longer be parsed.
Implementations§
Source§impl JobSubmission
impl JobSubmission
pub fn builder() -> JobSubmissionBuilder
Trait Implementations§
Source§impl Clone for JobSubmission
impl Clone for JobSubmission
Source§fn clone(&self) -> JobSubmission
fn clone(&self) -> JobSubmission
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 JobSubmission
impl Debug for JobSubmission
Source§impl<'de> Deserialize<'de> for JobSubmission
impl<'de> Deserialize<'de> for JobSubmission
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 JobSubmission
impl PartialEq for JobSubmission
Source§impl Serialize for JobSubmission
impl Serialize for JobSubmission
impl StructuralPartialEq for JobSubmission
Auto Trait Implementations§
impl Freeze for JobSubmission
impl RefUnwindSafe for JobSubmission
impl Send for JobSubmission
impl Sync for JobSubmission
impl Unpin for JobSubmission
impl UnwindSafe for JobSubmission
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