pub struct Task {Show 25 fields
pub affinities: Option<Vec<Affinity>>,
pub artifacts: Option<Vec<TaskArtifact>>,
pub csi_plugin_config: Option<TaskCsiPluginConfig>,
pub config: Option<HashMap<String, Value>>,
pub constraints: Option<Vec<Constraint>>,
pub dispatch_payload: Option<DispatchPayloadConfig>,
pub driver: Option<String>,
pub env: Option<HashMap<String, String>>,
pub kill_signal: Option<String>,
pub kill_timeout: Option<i64>,
pub kind: Option<String>,
pub leader: Option<bool>,
pub lifecycle: Option<TaskLifecycle>,
pub log_config: Option<LogConfig>,
pub meta: Option<HashMap<String, String>>,
pub name: Option<String>,
pub resources: Option<Resources>,
pub restart_policy: Option<RestartPolicy>,
pub scaling_policies: Option<Vec<ScalingPolicy>>,
pub services: Option<Vec<Service>>,
pub shutdown_delay: Option<i64>,
pub templates: Option<Vec<Template>>,
pub user: Option<String>,
pub vault: Option<Vault>,
pub volume_mounts: Option<Vec<VolumeMount>>,
}Fields§
§affinities: Option<Vec<Affinity>>§artifacts: Option<Vec<TaskArtifact>>§csi_plugin_config: Option<TaskCsiPluginConfig>§config: Option<HashMap<String, Value>>§constraints: Option<Vec<Constraint>>§dispatch_payload: Option<DispatchPayloadConfig>§driver: Option<String>§env: Option<HashMap<String, String>>§kill_signal: Option<String>§kill_timeout: Option<i64>§kind: Option<String>§leader: Option<bool>§lifecycle: Option<TaskLifecycle>§log_config: Option<LogConfig>§meta: Option<HashMap<String, String>>§name: Option<String>§resources: Option<Resources>§restart_policy: Option<RestartPolicy>§scaling_policies: Option<Vec<ScalingPolicy>>§services: Option<Vec<Service>>§shutdown_delay: Option<i64>§templates: Option<Vec<Template>>§user: Option<String>§vault: Option<Vault>§volume_mounts: Option<Vec<VolumeMount>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Task
impl<'de> Deserialize<'de> for Task
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
impl StructuralPartialEq for Task
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
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