Skip to main content

map_get_opt_str

Function map_get_opt_str 

Source
pub fn map_get_opt_str<'a>(
    value: &'a DagCbor,
    key: &str,
) -> Result<Option<&'a str>>
Expand description

Read an optional string field. Returns None when the field is omitted; an error if it is present but not a text string.