Function decode_json_envelope

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub fn decode_json_envelope<T: DeserializeOwned>(
    envelope: &JsonEnvelope,
) -> Result<T, Error>

Decodes a JSON envelope into the requested DTO type.

Errors

Returns a serde error when the envelope bytes are not valid JSON for T.