[][src]Function holochain_json_api::json::default_try_from_json

pub fn default_try_from_json<D: DeserializeOwned>(
    json_string: JsonString
) -> Result<D, JsonError>

if all you want to do is implement the default behaviour then use #[derive(DefaultJson)] standard boilerplate should include JsonError as the Error: impl TryFrom for T { type Error = JsonError; fn try_from(j: JsonString) -> JsonResult { default_try_from_json(j) } }