Skip to content

Commit

Permalink
config: add doc comment to AnnotatedValue
Browse files Browse the repository at this point in the history
  • Loading branch information
yuja committed Nov 26, 2024
1 parent 0b23bbb commit 14798d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,16 @@ pub enum ConfigEnvError {
ConfigCreateError(#[from] std::io::Error),
}

/// Configuration variable with its source information.
#[derive(Clone, Debug, PartialEq)]
pub struct AnnotatedValue {
/// Dotted name path to the configuration variable.
pub path: ConfigNamePathBuf,
/// Configuration value.
pub value: config::Value,
/// Source of the configuration value.
pub source: ConfigSource,
/// True if this value is overridden in higher precedence layers.
pub is_overridden: bool,
}

Expand Down

0 comments on commit 14798d3

Please sign in to comment.