Skip to main content

transcode

Function transcode 

Source
pub fn transcode<T: DeserializeOwned + Serialize + Validate>(
    payload: &RawValue,
    options: &DecodeOptions,
) -> Result<Box<RawValue>, DecodeError>
Expand description

Decodes a payload and serializes the typed value straight back.

Used by v2_1::transcode_request and friends: what comes out is what the Rust types actually model, so comparing it with the input reveals any member the types drop.