pub fn try_from_slice_with_schema<T: BorshDeserialize + BorshSchema>(
v: &[u8],
) -> Result<T>
Expand description
Deserialize this instance from a slice of bytes, but assume that at the beginning we have bytes describing the schema of the type. We deserialize this schema and verify that it is correct.