MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / string_field

Function string_field

packages/server/src/logs.rs:229–231  ·  view source on GitHub ↗
(payload: &Value, key: &str)

Source from the content-addressed store, hash-verified

227}
228
229fn string_field(payload: &Value, key: &str) -> String {
230 non_empty_string_field(payload, key).unwrap_or_default()
231}
232
233fn non_empty_string_field(payload: &Value, key: &str) -> Option<String> {
234 payload

Callers 1

parse_log_entryFunction · 0.70

Calls 1

non_empty_string_fieldFunction · 0.85

Tested by

no test coverage detected