Registry / serialization / schemars-derive

schemars-derive

JSON →
library1.2.1rscratesunverified

Macros for #[derive(JsonSchema)], for use with schemars to generate JSON Schema.

# Cargo.toml [dependencies] schemars_derive = "1.2.1"
INSTALL
IMPORT
SIG · SCHEMARS-DERIVE
S
schemars-derive
serializationrustv1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JsonSchema
use schemars_derive::JsonSchema;

Derives JsonSchema for a struct.

use schemars_derive::JsonSchema; #[derive(JsonSchema)] pub struct MyStruct { pub value: i32, } fn main() { // Use schemars to generate schema }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
schemars-derive — cargo add schemars-derive · libregistry