Crate magnet_derive [] [src]

Magnet, a JSON/BSON schema generator.

This crate only contains the #[derive(BsonSchema)] proc-macro. For documentation, please see the magnet_schema crate.

Functions

derive_bson_schema

Implements BsonSchema for a given type based on its recursively contained types in fields or variants. TODO(H2CO3): handle generics