1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
//! Contains program-related structures. /// Represents the program's execution options. #[derive(Clone, PartialEq, Eq, Debug)] pub struct Options { /// Indicates whether the program should be verbose. /// /// Defaults to `true`. pub be_verbose: bool, } impl Default for Options { // Creates an `Options` structure with default values. fn default() -> Options { Options { be_verbose: true, } } }