Skip to main content

with_decoding_context

Function with_decoding_context 

Source
pub fn with_decoding_context<T>(
    result: Result<T, DecodeError>,
    context: &'static str,
) -> Result<T, DecodeError>
Expand description

Adds schema context to an error returned while decoding a field.