pub enum DependencyStrategy {
All,
Any,
AtLeast {
count: usize,
},
Majority,
}Expand description
Dependency resolution strategy.
Variants§
All
All dependencies must be satisfied.
Any
At least one dependency must be satisfied.
AtLeast
Exactly N dependencies must be satisfied.
Majority
Custom voting strategy (majority).
Trait Implementations§
Source§impl Clone for DependencyStrategy
impl Clone for DependencyStrategy
Source§fn clone(&self) -> DependencyStrategy
fn clone(&self) -> DependencyStrategy
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 Debug for DependencyStrategy
impl Debug for DependencyStrategy
Source§impl<'de> Deserialize<'de> for DependencyStrategy
impl<'de> Deserialize<'de> for DependencyStrategy
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 DependencyStrategy
impl PartialEq for DependencyStrategy
Source§impl Serialize for DependencyStrategy
impl Serialize for DependencyStrategy
impl Copy for DependencyStrategy
impl Eq for DependencyStrategy
impl StructuralPartialEq for DependencyStrategy
Auto Trait Implementations§
impl Freeze for DependencyStrategy
impl RefUnwindSafe for DependencyStrategy
impl Send for DependencyStrategy
impl Sync for DependencyStrategy
impl Unpin for DependencyStrategy
impl UnsafeUnpin for DependencyStrategy
impl UnwindSafe for DependencyStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.