kutil-cli-macros 0.0.7

Procedural macros for kutil::cli
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use deluxe::*;

//
// EnumAttribute
//

/// Enum-level attribute for `#[derive(Depict)]`.
#[derive(Default, ExtractAttributes)]
#[deluxe(attributes(depict))]
pub struct EnumAttribute {
    /// Whether to include the variant name.
    #[deluxe(default = true)]
    pub variant: bool,
}