pub struct TaskBuilder { /* private fields */ }
Expand description
Builder for Task
.
Implementations§
Source§impl TaskBuilder
impl TaskBuilder
pub fn name(&mut self, value: String) -> &mut Self
pub fn driver(&mut self, value: String) -> &mut Self
pub fn user(&mut self, value: String) -> &mut Self
pub fn lifecycle(&mut self, value: Option<TaskLifecycle>) -> &mut Self
pub fn config(&mut self, value: HashMap<String, Value>) -> &mut Self
pub fn constraints(&mut self, value: Vec<Constraint>) -> &mut Self
pub fn affinities(&mut self, value: Vec<Affinity>) -> &mut Self
pub fn env(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn services(&mut self, value: Vec<Service>) -> &mut Self
pub fn resources(&mut self, value: Option<Resources>) -> &mut Self
pub fn restart_policy(&mut self, value: Option<RestartPolicy>) -> &mut Self
pub fn meta(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn kill_timeout(&mut self, value: Option<TimeDelta>) -> &mut Self
pub fn log_config(&mut self, value: Option<LogConfig>) -> &mut Self
pub fn artifacts(&mut self, value: Vec<TaskArtifact>) -> &mut Self
pub fn vault(&mut self, value: Option<Vault>) -> &mut Self
pub fn consul(&mut self, value: Option<Consul>) -> &mut Self
pub fn templates(&mut self, value: Vec<Template>) -> &mut Self
pub fn dispatch_payload( &mut self, value: Option<DispatchPayloadConfig>, ) -> &mut Self
pub fn volume_mounts(&mut self, value: Vec<VolumeMount>) -> &mut Self
pub fn csi_plugin_config( &mut self, value: Option<TaskCsiPluginConfig>, ) -> &mut Self
pub fn leader(&mut self, value: bool) -> &mut Self
pub fn shutdown_delay(&mut self, value: Option<TimeDelta>) -> &mut Self
pub fn kill_signal(&mut self, value: Option<String>) -> &mut Self
pub fn kind(&mut self, value: String) -> &mut Self
pub fn scaling_policies(&mut self, value: Vec<ScalingPolicy>) -> &mut Self
Sourcepub fn identity(&mut self, value: Option<WorkloadIdentity>) -> &mut Self
pub fn identity(&mut self, value: Option<WorkloadIdentity>) -> &mut Self
Identity is the default Nomad Workload Identity and will be added to Identities with the name “default”
Sourcepub fn identities(&mut self, value: Vec<WorkloadIdentity>) -> &mut Self
pub fn identities(&mut self, value: Vec<WorkloadIdentity>) -> &mut Self
Workload Identities
pub fn actions(&mut self, value: Vec<Action>) -> &mut Self
pub fn schedule(&mut self, value: Option<TaskSchedule>) -> &mut Self
Trait Implementations§
Source§impl Clone for TaskBuilder
impl Clone for TaskBuilder
Source§fn clone(&self) -> TaskBuilder
fn clone(&self) -> TaskBuilder
Returns a duplicate 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 TaskBuilder
impl RefUnwindSafe for TaskBuilder
impl Send for TaskBuilder
impl Sync for TaskBuilder
impl Unpin for TaskBuilder
impl UnwindSafe for TaskBuilder
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