pub struct GroupMeta<'a> {
pub name: &'a str,
pub members: &'a [&'a str],
pub required: bool,
pub multiple: bool,
}Expand description
A set of one command’s arguments that relate to one another as a set.
Pairwise conflicts can say “at most one of these”, once per pair; what it cannot
say is that one of them is needed, which is a statement about the set.
Fields§
§name: &'a strWhat the group is called. It appears in the message a failed check produces, and it is how a reader tells two groups on one command apart.
members: &'a [&'a str]The entries in the group, as selectors — --long or -s for flags, and the
bare argument name for a positional.
required: boolWhether at least one member has to be given.
multiple: boolWhether more than one member may be given. False is what makes a bare group mutual exclusion, as it does in clap.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GroupMeta<'a>
impl<'a> RefUnwindSafe for GroupMeta<'a>
impl<'a> Send for GroupMeta<'a>
impl<'a> Sync for GroupMeta<'a>
impl<'a> Unpin for GroupMeta<'a>
impl<'a> UnsafeUnpin for GroupMeta<'a>
impl<'a> UnwindSafe for GroupMeta<'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