pub struct AntiAffinity {
pub soft: Option<Vec<SoftRequirement>>,
pub hard: Option<HardRequirement>,
}Expand description
Required and preferred bin aversions for an item
Fields§
§soft: Option<Vec<SoftRequirement>>§hard: Option<HardRequirement>Trait Implementations§
Source§impl Debug for AntiAffinity
impl Debug for AntiAffinity
Source§impl<'de> Deserialize<'de> for AntiAffinity
impl<'de> Deserialize<'de> for AntiAffinity
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 AntiAffinity
impl RefUnwindSafe for AntiAffinity
impl Send for AntiAffinity
impl Sync for AntiAffinity
impl Unpin for AntiAffinity
impl UnwindSafe for AntiAffinity
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