pub struct TaskSpec {
pub plugin_spec: Option<TaskSpecPluginSpec>,
pub container_spec: Option<TaskSpecContainerSpec>,
pub network_attachment_spec: Option<TaskSpecNetworkAttachmentSpec>,
pub resources: Option<TaskSpecResources>,
pub restart_policy: Option<TaskSpecRestartPolicy>,
pub placement: Option<TaskSpecPlacement>,
pub force_update: Option<i64>,
pub runtime: Option<String>,
pub networks: Option<Vec<NetworkAttachmentConfig>>,
pub log_driver: Option<TaskSpecLogDriver>,
}
Expand description
User modifiable task configuration.
Fields§
§plugin_spec: Option<TaskSpecPluginSpec>
§container_spec: Option<TaskSpecContainerSpec>
§network_attachment_spec: Option<TaskSpecNetworkAttachmentSpec>
§resources: Option<TaskSpecResources>
§restart_policy: Option<TaskSpecRestartPolicy>
§placement: Option<TaskSpecPlacement>
§force_update: Option<i64>
A counter that triggers an update even if no relevant parameters have been changed.
runtime: Option<String>
Runtime is the type of runtime specified for the task executor.
networks: Option<Vec<NetworkAttachmentConfig>>
Specifies which networks the service should attach to.
log_driver: Option<TaskSpecLogDriver>
Trait Implementations§
source§impl<'de> Deserialize<'de> for TaskSpec
impl<'de> Deserialize<'de> for TaskSpec
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for TaskSpec
impl Serialize for TaskSpec
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TaskSpec
Auto Trait Implementations§
impl Freeze for TaskSpec
impl RefUnwindSafe for TaskSpec
impl Send for TaskSpec
impl Sync for TaskSpec
impl Unpin for TaskSpec
impl UnwindSafe for TaskSpec
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)