Skip to main content

transcode_response

Function transcode_response 

Source
pub fn transcode_response(
    action: Action,
    payload: &RawValue,
    options: &DecodeOptions,
) -> Result<Box<RawValue>, DecodeError>
Expand description

Decodes a response payload into its typed form and serializes it back.

Returns DecodeError::unsupported_action for a SEND, which has no response.