fedimint_client::meta

Function parse_meta_value_static

Source
pub fn parse_meta_value_static<V: DeserializeOwned + 'static>(
    str_value: &str,
) -> Result<V>
Expand description

Tries to parse str_value as JSON. In the special case that V is String we return the raw str_value if JSON parsing fails. This necessary since the spec wasn’t clear enough in the beginning.