pub enum DependencyCondition {
Present,
Absent,
Equals(String),
NotEquals(String),
In(Vec<String>),
NotIn(Vec<String>),
}Expand description
Dependency condition type
Variants§
Present
Field must be present (not empty/null)
Absent
Field must be absent (empty/null)
Equals(String)
Field must equal a specific value
NotEquals(String)
Field must not equal a specific value
In(Vec<String>)
Field must be one of these values
NotIn(Vec<String>)
Field must not be one of these values
Trait Implementations§
Source§impl Clone for DependencyCondition
impl Clone for DependencyCondition
Source§fn clone(&self) -> DependencyCondition
fn clone(&self) -> DependencyCondition
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 moreAuto Trait Implementations§
impl Freeze for DependencyCondition
impl RefUnwindSafe for DependencyCondition
impl Send for DependencyCondition
impl Sync for DependencyCondition
impl Unpin for DependencyCondition
impl UnwindSafe for DependencyCondition
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