pub struct JobSubmissionBuilder { /* private fields */ }
Expand description
Builder for JobSubmission
.
Implementations§
Source§impl JobSubmissionBuilder
impl JobSubmissionBuilder
Sourcepub fn format(&mut self, value: String) -> &mut Self
pub fn format(&mut self, value: String) -> &mut Self
Format indicates what the Source content was (hcl1, hcl2, or json). HCL1 jobs can no longer be parsed.
Sourcepub fn variable_flags(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn variable_flags(&mut self, value: HashMap<String, String>) -> &mut Self
VariableFlags contains the CLI “-var” flag arguments as submitted with the job (hcl2 only).
Sourcepub fn variables(&mut self, value: String) -> &mut Self
pub fn variables(&mut self, value: String) -> &mut Self
Variables contains the opaque variables configuration as coming from a var-file or the WebUI variables input (hcl2 only).
Sourcepub fn source(&mut self, value: String) -> &mut Self
pub fn source(&mut self, value: String) -> &mut Self
Source contains the original job definition (may be in the format of hcl1, hcl2, or json). HCL1 jobs can no longer be parsed.
Sourcepub fn build(&self) -> Result<JobSubmission, JobSubmissionBuilderError>
pub fn build(&self) -> Result<JobSubmission, JobSubmissionBuilderError>
Trait Implementations§
Source§impl Clone for JobSubmissionBuilder
impl Clone for JobSubmissionBuilder
Source§fn clone(&self) -> JobSubmissionBuilder
fn clone(&self) -> JobSubmissionBuilder
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 moreAuto Trait Implementations§
impl Freeze for JobSubmissionBuilder
impl RefUnwindSafe for JobSubmissionBuilder
impl Send for JobSubmissionBuilder
impl Sync for JobSubmissionBuilder
impl Unpin for JobSubmissionBuilder
impl UnwindSafe for JobSubmissionBuilder
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