logo
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
/// The verbosity of responses from the Daml ledger.
///
/// If verbose mode is enabled then values served over the API will contain more information than strictly necessary to
/// interpret the data.  In particular, setting the verbose flag to true triggers the ledger to include labels for
/// record fields.
#[derive(Debug, Eq, PartialEq)]
pub enum DamlVerbosity {
    /// Enable verbose mode.
    Verbose,

    /// Disable verbose mode.
    NotVerbose,
}

impl From<DamlVerbosity> for bool {
    fn from(verbose: DamlVerbosity) -> Self {
        verbose == DamlVerbosity::Verbose
    }
}