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§fn clone(&self) -> TopologyConstraint
fn clone(&self) -> TopologyConstraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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§fn default() -> TopologyConstraint
fn default() -> TopologyConstraint
Returns the “default value” for a type. Read more
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§fn eq(&self, other: &TopologyConstraint) -> bool
fn eq(&self, other: &TopologyConstraint) -> bool
Tests for
self and other values to be equal, and is used by ==.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