hdk::prelude::warrant
pub fn encode<T>(val: &T) -> Result<Vec<u8, Global>, SerializedBytesError> where T: Debug + Serialize,