pub(crate) fn must_deserialize<T: DeserializeOwned>(value: &Option<Vec<u8>>) -> StdResult<T> {
    match value {
        Some(d) => from_slice(&d),
        None => Err(not_found(type_name::<T>())),
    }
}
/// must_deserialize parses json bytes from storage (Option), returning NotFound error if no data present
must_deserialize parses json bytes from storage (Option), returning NotFound error if no data present
must_deserialize parses json bytes from storage ( Option ) returning NotFound error if no data present
pub(crate) fn must_deserialize<T: DeserializeOwned>(value: &Option<Vec<u8>>) -> StdResult<T> {
    match value {
        Some(d) => from_slice(&d),
        None => Err(not_found(type_name::<T>())),
    }
}
pub ( crate ) fn must_deserialize < T : DeserializeOwned > ( value : & Option < Vec < u8 > > ) -> StdResult < T > { match value { Some ( d ) => from_slice ( & d ) , None => Err ( not_found ( type_name :: < T > ( ) ) ) , } }
must_deserialize parses json bytes from storage (Option), returning NotFound error if no data present
must_deserialize parses json bytes from storage ( Option ) returning NotFound error if no data present
value
&Option<Vec<u8>>
value
&Option<Vec<u8>>