Struct pulumi_wasm_docker::ServiceTaskSpec
source · pub struct ServiceTaskSpec {
pub container_spec: Box<ServiceTaskSpecContainerSpec>,
pub force_update: Box<Option<i32>>,
pub log_driver: Box<Option<ServiceTaskSpecLogDriver>>,
pub networks_advanceds: Box<Option<Vec<ServiceTaskSpecNetworksAdvanced>>>,
pub placement: Box<Option<ServiceTaskSpecPlacement>>,
pub resources: Box<Option<ServiceTaskSpecResources>>,
pub restart_policy: Box<Option<ServiceTaskSpecRestartPolicy>>,
pub runtime: Box<Option<String>>,
}
Fields§
§container_spec: Box<ServiceTaskSpecContainerSpec>
The spec for each container
force_update: Box<Option<i32>>
A counter that triggers an update even if no relevant parameters have been changed. See the spec.
log_driver: Box<Option<ServiceTaskSpecLogDriver>>
Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified
networks_advanceds: Box<Option<Vec<ServiceTaskSpecNetworksAdvanced>>>
The networks the container is attached to
placement: Box<Option<ServiceTaskSpecPlacement>>
The placement preferences
resources: Box<Option<ServiceTaskSpecResources>>
Resource requirements which apply to each individual container created as part of the service
restart_policy: Box<Option<ServiceTaskSpecRestartPolicy>>
Specification for the restart policy which applies to containers created as part of this service.
runtime: Box<Option<String>>
Runtime is the type of runtime specified for the task executor. See the types.
Implementations§
source§impl ServiceTaskSpec
impl ServiceTaskSpec
sourcepub fn builder() -> ServiceTaskSpecBuilder
pub fn builder() -> ServiceTaskSpecBuilder
Create an instance of ServiceTaskSpec
using the builder syntax
Trait Implementations§
source§impl Debug for ServiceTaskSpec
impl Debug for ServiceTaskSpec
source§impl<'de> Deserialize<'de> for ServiceTaskSpec
impl<'de> Deserialize<'de> for ServiceTaskSpec
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
Auto Trait Implementations§
impl Freeze for ServiceTaskSpec
impl RefUnwindSafe for ServiceTaskSpec
impl Send for ServiceTaskSpec
impl Sync for ServiceTaskSpec
impl Unpin for ServiceTaskSpec
impl UnwindSafe for ServiceTaskSpec
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