pub struct DefaultIf<'a> {
pub selector: &'a str,
pub when: Option<&'a str>,
pub value: &'a str,
}Expand description
A default that applies when another flag is given.
Two-argument form (when is None) is clap’s ArgPredicate::IsPresent.
Three-argument form is Equals.
Fields§
§selector: &'a str§when: Option<&'a str>§value: &'a strTrait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DefaultIf<'a>
impl<'a> RefUnwindSafe for DefaultIf<'a>
impl<'a> Send for DefaultIf<'a>
impl<'a> Sync for DefaultIf<'a>
impl<'a> Unpin for DefaultIf<'a>
impl<'a> UnsafeUnpin for DefaultIf<'a>
impl<'a> UnwindSafe for DefaultIf<'a>
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