#[derive(NsonSerialize)]
{
// Attributes available to this derive:
#[njson]
#[nextjson]
#[serde]
}
Expand description
Derive NextJson’s native serialization contract and compile-time schema.
Configuration is accepted through #[njson(...)] (and, for migration
convenience, #[serde(...)]). The generated implementation writes
directly through NsonSerialize::nextencode and exposes
NsonSchema::SCHEMA without depending on another macro framework.