mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-19 19:08:08 +00:00
config: add doc comment to AnnotatedValue
This commit is contained in:
parent
0b23bbb3bb
commit
14798d3f50
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue