Struct rust_enum_derive::FileArgs
[−]
[src]
pub struct FileArgs { pub name: Option<String>, pub derive: Option<String>, pub define: bool, pub default: bool, pub display: bool, pub fromprimative: bool, pub fromstr: bool, pub hex: bool, pub pretty_fmt: bool, }
Arguments for how to process() an input file.
Fields
name: Option<String>
the enum name (Name if not specified)
derive: Option<String>
Which traits to derive. Ex: "Debug, PartialEq"
define: bool
parse C #define input instead of enum
default: bool
implement the Default trait with the first value
display: bool
implement the std::fmt::Display trait
fromprimative: bool
implement the num::traits::FromPrimitive trait
fromstr: bool
implement the std::str::FromStr trait
hex: bool
hexadecimal output
pretty_fmt: bool
implement pretty_fmt()