Skip to main content

NsonDeserialize

Derive Macro NsonDeserialize 

Source
#[derive(NsonDeserialize)]
{
    // Attributes available to this derive:
    #[njson]
    #[nextjson]
}
Expand description

Derive NextJson’s native decoding contract.

Configuration is accepted through #[njson(...)]. The generated implementation decodes through checked DecodeSlot state and uses normal Rust drop semantics for partially initialized fields.