Skip to main content

decode_sample

Function decode_sample 

Source
pub async fn decode_sample(
    store: &SchemaStore,
    session: &Session,
    slices: &SliceSet,
    base: &str,
    wire_key: &str,
    sample_encoding: Option<&str>,
    bytes: &[u8],
) -> (Option<String>, Rendering)
Expand description

The whole decode pipeline for one sample: refine the key against the slices, resolve the schema through the store, decode — or fall back structurally, tagged with whatever we did learn.