pub enum PlacementAffinityRuleRuleScopeEnum {
    Cluster,
    Host,
    StoragePod,
    Datastore,
    Other_(String),
}Expand description
Rule scope determines conditions when an affinity rule is satisfied.
The following uses affinity rule as example. cluster: All Vms in the rule list are placed in a single cluster. host: All Vms in the rule list are placed in a single host. storagePod: All Vms in the rule list are placed in a single storagePod. datastore: All Vms in the rule list are placed in a single datastore.
Possible values:
cluster: clusters are the scopehost: individual hosts are the scopestoragePod: datastore cluster is teh scopedatastore: individual datastores are the scope
Variants§
Cluster
Host
StoragePod
Datastore
Other_(String)
This variant handles values not known at compile time.
Trait Implementations§
Source§impl Clone for PlacementAffinityRuleRuleScopeEnum
 
impl Clone for PlacementAffinityRuleRuleScopeEnum
Source§fn clone(&self) -> PlacementAffinityRuleRuleScopeEnum
 
fn clone(&self) -> PlacementAffinityRuleRuleScopeEnum
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<'de> Deserialize<'de> for PlacementAffinityRuleRuleScopeEnum
 
impl<'de> Deserialize<'de> for PlacementAffinityRuleRuleScopeEnum
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<'_derivative_strum> From<&'_derivative_strum PlacementAffinityRuleRuleScopeEnum> for &'static str
 
impl<'_derivative_strum> From<&'_derivative_strum PlacementAffinityRuleRuleScopeEnum> for &'static str
Source§fn from(
    x: &'_derivative_strum PlacementAffinityRuleRuleScopeEnum,
) -> &'static str
 
fn from( x: &'_derivative_strum PlacementAffinityRuleRuleScopeEnum, ) -> &'static str
Converts to this type from the input type.
Source§impl From<PlacementAffinityRuleRuleScopeEnum> for &'static str
 
impl From<PlacementAffinityRuleRuleScopeEnum> for &'static str
Source§fn from(x: PlacementAffinityRuleRuleScopeEnum) -> &'static str
 
fn from(x: PlacementAffinityRuleRuleScopeEnum) -> &'static str
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PlacementAffinityRuleRuleScopeEnum
impl RefUnwindSafe for PlacementAffinityRuleRuleScopeEnum
impl Send for PlacementAffinityRuleRuleScopeEnum
impl Sync for PlacementAffinityRuleRuleScopeEnum
impl Unpin for PlacementAffinityRuleRuleScopeEnum
impl UnwindSafe for PlacementAffinityRuleRuleScopeEnum
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