Struct bollard::models::TaskSpec [−][src]
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, Global>>,
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, Global>>
Specifies which networks the service should attach to.
log_driver: Option<TaskSpecLogDriver>
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<TaskSpec, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub 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
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Auto Trait Implementations
impl RefUnwindSafe for TaskSpec
impl UnwindSafe for TaskSpec
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more