MCPcopy Create free account
hub / github.com/chatmail/core / get

Method get

src/param.rs:341–343  ·  view source on GitHub ↗

Get the value of the given key, return `None` if no value is set.

(&self, key: Param)

Source from the content-addressed store, hash-verified

339
340 /// Get the value of the given key, return `None` if no value is set.
341 pub fn get(&self, key: Param) -> Option<&str> {
342 self.inner.get(&key).map(|s| s.as_str())
343 }
344
345 /// Check if the given key is set.
346 pub fn exists(&self, key: Param) -> bool {

Callers 15

sanitize_name_and_addrFunction · 0.45
sanitize_nameFunction · 0.45
addr_normalizeFunction · 0.45
remove_prefixFunction · 0.45
get_timestampMethod · 0.45
get_markerMethod · 0.45
remove_hookMethod · 0.45
_on_eventMethod · 0.45
_parse_commandMethod · 0.45
rpc_futureMethod · 0.45
__init__Method · 0.45
startMethod · 0.45

Calls 1

as_strMethod · 0.80

Tested by 10

get_versioned_venvFunction · 0.36
factoryFunction · 0.36
dump_imap_structuresMethod · 0.36
test_from_slice_bad_dataFunction · 0.36
nameMethod · 0.36
pop_sent_msg_exMethod · 0.36
get_smtp_rows_for_msgMethod · 0.36
print_eventFunction · 0.36
test_can_reconnectFunction · 0.36