We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 975d715 commit bc81bbaCopy full SHA for bc81bba
src/config.rs
@@ -156,6 +156,14 @@ impl Config {
156
self.refresh()
157
}
158
159
+ /// Set an overwrite
160
+ ///
161
+ /// This function sets an overwrite value.
162
+ /// The overwrite `value` is written to the `key` location on every `refresh()`
163
164
+ /// # Warning
165
166
+ /// Errors if config is frozen
167
pub fn set<T>(&mut self, key: &str, value: T) -> Result<&mut Config>
168
where
169
T: Into<Value>,
0 commit comments