pub struct EffectiveConfig {
pub settings: Vec<Setting>,
pub secrets: SecretsReport,
}Expand description
Every setting this build reads, with its value and where the value came from.
Fields§
§settings: Vec<Setting>Every setting, in key order.
secrets: SecretsReportWhat the credentials file supplied, by name, and which layer answers for each.
Beside the settings because it is the same question — where does this value come from — asked of the one kind of value that may never be printed. So the name and the layer are reported and the value never is.
Implementations§
Source§impl EffectiveConfig
impl EffectiveConfig
Sourcepub fn new(merged: &Merged, config: &Config, secrets: SecretsReport) -> Self
pub fn new(merged: &Merged, config: &Config, secrets: SecretsReport) -> Self
Combine what the layers set with the built-in values for what they did not.
A setting nothing set still appears, carrying Origin::Default and the value
the run will actually use — the point of the verb is to answer “what is this
command going to do”, and a silent omission answers it wrongly.
Sourcepub fn render_text(&self) -> String
pub fn render_text(&self) -> String
The table a person reads, one setting per line.
Values render as compact JSON rather than bare: this table’s whole job is to
answer what a setting is, and a bare 50 beside a bare "50" would hide the
difference between a number a document set and a string an environment variable
spelled.
Trait Implementations§
Source§impl Clone for EffectiveConfig
impl Clone for EffectiveConfig
Source§fn clone(&self) -> EffectiveConfig
fn clone(&self) -> EffectiveConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EffectiveConfig
impl Debug for EffectiveConfig
Source§impl JsonSchema for EffectiveConfig
impl JsonSchema for EffectiveConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more