pub fn payload_first_string(value: &Value) -> Option<String>Expand description
Returns the first string value from a payload object or array.
§Parameters
value: Input consumed bycrate::runtime::json_commands::payload_first_string.
§Returns
Returns Some when crate::runtime::json_commands::payload_first_string can produce a value and None otherwise.
§Performance
Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::json_commands::payload_first_string.
§Examples
ⓘ
let _result = pharos_native::runtime::json_commands::payload_first_string("value");§Related
crate::runtime::json_commandsfor adjacent helpers that share the same runtime surface.