#[repr(u8)]pub enum Attr {
Positional,
Named,
Short(Option<char>),
Subcommand,
}Expand description
Args attribute types for field configuration.
Variants§
Positional
Marks a field as a positional argument.
Usage: #[facet(args::positional)]
Named
Marks a field as a named argument.
Usage: #[facet(args::named)]
Short(Option<char>)
Specifies a short flag character for the field.
Usage: #[facet(args::short = 'v')] or just #[facet(args::short)]
Subcommand
Marks a field as a subcommand.
The field type must be an enum where each variant represents a subcommand. Variant names are converted to kebab-case for matching.
Usage: #[facet(args::subcommand)]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Attr
impl RefUnwindSafe for Attr
impl Send for Attr
impl Sync for Attr
impl Unpin for Attr
impl UnwindSafe for Attr
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