Skip to main content

decode_record

Function decode_record 

Source
pub fn decode_record<T: DeserializeOwned>(bytes: &[u8]) -> Result<T, WireError>
Expand description

Decode exactly one record, rejecting duplicate keys and trailing data.

Unknown fields are ignored by the target type. Their values are not interpreted as application records; this permits future extension values.