pub enum FlagConstraint {
RequiredIf(String),
ConflictsWith(Vec<String>),
Requires(Vec<String>),
}Expand description
Represents constraints that can be applied to flags
Flag constraints allow you to define relationships between flags, such as mutual exclusivity or dependencies.
Variants§
RequiredIf(String)
This flag is required if another flag is set
ConflictsWith(Vec<String>)
This flag conflicts with other flags (mutually exclusive)
Requires(Vec<String>)
This flag requires other flags to be set
Trait Implementations§
Source§impl Clone for FlagConstraint
impl Clone for FlagConstraint
Source§fn clone(&self) -> FlagConstraint
fn clone(&self) -> FlagConstraint
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 FlagConstraint
impl Debug for FlagConstraint
Source§impl PartialEq for FlagConstraint
impl PartialEq for FlagConstraint
impl Eq for FlagConstraint
impl StructuralPartialEq for FlagConstraint
Auto Trait Implementations§
impl Freeze for FlagConstraint
impl RefUnwindSafe for FlagConstraint
impl Send for FlagConstraint
impl Sync for FlagConstraint
impl Unpin for FlagConstraint
impl UnwindSafe for FlagConstraint
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