Struct docker_api::api::task::data::TaskPlacement [−][src]
pub struct TaskPlacement {
pub constraints: Option<Vec<String>>,
pub preferences: Option<Vec<PlacementPreference>>,
pub max_replicas: Option<u64>,
pub platforms: Option<Vec<Platform>>,
}This is supported on crate feature
swarm only.Fields
constraints: Option<Vec<String>>preferences: Option<Vec<PlacementPreference>>max_replicas: Option<u64>platforms: Option<Vec<Platform>>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 TaskPlacementimpl Send for TaskPlacementimpl Sync for TaskPlacementimpl Unpin for TaskPlacementimpl UnwindSafe for TaskPlacementBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more