pub fn dup_or_default(value: Option<&str>, default_value: &str) -> StringExpand description
Returns an owned non-empty value or the supplied default.
§Parameters
value: Input consumed bycrate::runtime::json_commands::dup_or_default.default_value: Input consumed bycrate::runtime::json_commands::dup_or_default.
§Returns
Returns the computed value produced by crate::runtime::json_commands::dup_or_default.
§Examples
ⓘ
let _result = pharos_native::runtime::json_commands::dup_or_default("value", todo!());§Related
crate::runtime::json_commandsfor adjacent helpers that share the same runtime surface.