pub struct Affinity {
pub node_affinity: Option<NodeAffinity>,
pub pod_affinity: Option<PodAffinity>,
pub pod_anti_affinity: Option<PodAntiAffinity>,
}Fields§
§node_affinity: Option<NodeAffinity>§pod_affinity: Option<PodAffinity>§pod_anti_affinity: Option<PodAntiAffinity>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Affinity
impl<'de> Deserialize<'de> for Affinity
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
Source§impl FromStr for Affinity
Converts Query Parameters representation (style=form, explode=false) to a Affinity value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for Affinity
Converts Query Parameters representation (style=form, explode=false) to a Affinity value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl ToString for Affinity
Converts the Affinity value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for Affinity
Converts the Affinity value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl<'v_a> ValidateArgs<'v_a> for Affinity
impl<'v_a> ValidateArgs<'v_a> for Affinity
impl StructuralPartialEq for Affinity
Auto Trait Implementations§
impl Freeze for Affinity
impl RefUnwindSafe for Affinity
impl Send for Affinity
impl Sync for Affinity
impl Unpin for Affinity
impl UnwindSafe for Affinity
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