Set a key-value pair.
(&mut self, key: impl Into<String>, value: impl Into<String>)
| 115 | |
| 116 | /// Set a key-value pair. |
| 117 | pub fn set(&mut self, key: impl Into<String>, value: impl Into<String>) { |
| 118 | self.data.insert(key.into(), value.into()); |
| 119 | } |
| 120 | |
| 121 | /// Check if a key exists. |
| 122 | pub fn contains(&self, key: &str) -> bool { |