fn unpack_data<T>(data: &[u8]) -> Result<T, ApplyError>
where
    T: protobuf::Message,
{
    protobuf::parse_from_bytes(&data).map_err(|err| {
        ApplyError::InvalidTransaction(format!(
            "Failed to unmarshal CertRegistryTransaction: {:?}",
            err
        ))
    })
}
/// Deserializes binary data to a protobuf object
Deserializes binary data to a protobuf object
Deserializes binary data to a protobuf object
fn unpack_data<T>(data: &[u8]) -> Result<T, ApplyError>
where
    T: protobuf::Message,
{
    protobuf::parse_from_bytes(&data).map_err(|err| {
        ApplyError::InvalidTransaction(format!(
            "Failed to unmarshal CertRegistryTransaction: {:?}",
            err
        ))
    })
}
fn unpack_data < T > ( data : & [ u8 ] ) -> Result < T , ApplyError > where T : protobuf :: Message , { protobuf :: parse_from_bytes ( & data ) . map_err ( | err | { ApplyError :: InvalidTransaction ( format ! ( " " err ) ) } ) }
Deserializes binary data to a protobuf object
Deserializes binary data to a protobuf object
data
&[u8]