MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / set

Method set

crates/chat-cli/src/database/settings.rs:232–235  ·  view source on GitHub ↗
(&mut self, key: Setting, value: impl Into<serde_json::Value>)

Source from the content-addressed store, hash-verified

230 }
231
232 pub async fn set(&mut self, key: Setting, value: impl Into<serde_json::Value>) -> Result<(), DatabaseError> {
233 self.0.insert(key.to_string(), value.into());
234 self.save_to_file().await
235 }
236
237 pub async fn remove(&mut self, key: Setting) -> Result<Option<Value>, DatabaseError> {
238 let key = self.0.remove(key.as_ref());

Callers 9

test_settingsFunction · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
set_enabledMethod · 0.80
executeMethod · 0.80
init_configFunction · 0.80
update_configFunction · 0.80
data_dirFunction · 0.80

Calls 3

insertMethod · 0.80
to_stringMethod · 0.80
save_to_fileMethod · 0.45

Tested by 1

test_settingsFunction · 0.64