Struct docker_api::api::task::models::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 TaskPlacement
impl Send for TaskPlacement
impl Sync for TaskPlacement
impl Unpin for TaskPlacement
impl UnwindSafe for TaskPlacement
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