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

Method get

crates/chat-cli/src/database/settings.rs:228–230  ·  view source on GitHub ↗
(&self, key: Setting)

Source from the content-addressed store, hash-verified

226 }
227
228 pub fn get(&self, key: Setting) -> Option<&Value> {
229 self.0.get(key.as_ref())
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());

Callers 11

migrateMethod · 0.45
get_entryMethod · 0.45
set_entryMethod · 0.45
delete_entryMethod · 0.45
all_entriesMethod · 0.45
max_migration_versionFunction · 0.45
has_migrationFunction · 0.45
test_migrateFunction · 0.45
get_boolMethod · 0.45
get_stringMethod · 0.45
get_intMethod · 0.45

Calls 1

as_refMethod · 0.45

Tested by 1

test_migrateFunction · 0.36