pub struct PlacementConfig {
pub constraints: Option<Vec<String>>,
pub preferences: Option<Vec<HashMap<String, String>>>,
pub max_replicas_per_node: Option<i32>,
}Expand description
Placement configuration.
Fields§
§constraints: Option<Vec<String>>Constraints
preferences: Option<Vec<HashMap<String, String>>>Preferences
max_replicas_per_node: Option<i32>Max replicas per node
Trait Implementations§
Source§impl Clone for PlacementConfig
impl Clone for PlacementConfig
Source§fn clone(&self) -> PlacementConfig
fn clone(&self) -> PlacementConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlacementConfig
impl Debug for PlacementConfig
Source§impl Default for PlacementConfig
impl Default for PlacementConfig
Source§fn default() -> PlacementConfig
fn default() -> PlacementConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlacementConfig
impl<'de> Deserialize<'de> for PlacementConfig
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 PlacementConfig
impl RefUnwindSafe for PlacementConfig
impl Send for PlacementConfig
impl Sync for PlacementConfig
impl Unpin for PlacementConfig
impl UnwindSafe for PlacementConfig
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