Struct docker_api::api::task::models::TaskSpec [−][src]
pub struct TaskSpec {
pub plugin_spec: Option<PluginSpec>,
pub container_spec: Option<ContainerSpec>,
pub network_attachment_spec: Option<NetworkAttachmentSpec>,
pub resources: Option<Resources>,
pub restart_policy: Option<TaskRestartPolicy>,
pub placement: Option<TaskPlacement>,
pub force_update: Option<isize>,
pub runtime: Option<String>,
pub networks: Option<Vec<NetworkAttachmentConfig>>,
pub log_driver: Option<Driver>,
}
This is supported on crate feature
swarm
only.Fields
plugin_spec: Option<PluginSpec>
container_spec: Option<ContainerSpec>
network_attachment_spec: Option<NetworkAttachmentSpec>
resources: Option<Resources>
restart_policy: Option<TaskRestartPolicy>
placement: Option<TaskPlacement>
force_update: Option<isize>
runtime: Option<String>
networks: Option<Vec<NetworkAttachmentConfig>>
log_driver: Option<Driver>
Trait Implementations
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
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