Trait smart_config::fallback::FallbackSource
source · pub trait FallbackSource:
'static
+ Send
+ Sync
+ Debug
+ Display {
// Required method
fn provide_value(&self) -> Option<WithOrigin>;
}
Expand description
Fallback source of a configuration param.
Required Methods§
sourcefn provide_value(&self) -> Option<WithOrigin>
fn provide_value(&self) -> Option<WithOrigin>
Potentially provides a value for the param.
Implementations should return None
(vs Some(Value::Null)
etc.) if the source doesn’t have a value.