pub struct TopologyConstraint {
pub key: String,
}Expand description
TopologyConstraint defines a topology constraint for a PodGroup.
Fields§
§key: Stringkey specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: “topology.kubernetes.io/rack”
Trait Implementations§
Source§impl Clone for TopologyConstraint
impl Clone for TopologyConstraint
Source§impl Debug for TopologyConstraint
impl Debug for TopologyConstraint
Source§impl DeepMerge for TopologyConstraint
impl DeepMerge for TopologyConstraint
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other into self.Source§impl Default for TopologyConstraint
impl Default for TopologyConstraint
Source§impl<'de> Deserialize<'de> for TopologyConstraint
impl<'de> Deserialize<'de> for TopologyConstraint
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 PartialEq for TopologyConstraint
impl PartialEq for TopologyConstraint
Source§impl Serialize for TopologyConstraint
impl Serialize for TopologyConstraint
impl StructuralPartialEq for TopologyConstraint
Auto Trait Implementations§
impl Freeze for TopologyConstraint
impl RefUnwindSafe for TopologyConstraint
impl Send for TopologyConstraint
impl Sync for TopologyConstraint
impl Unpin for TopologyConstraint
impl UnsafeUnpin for TopologyConstraint
impl UnwindSafe for TopologyConstraint
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