Open AdamLeyshon opened 3 years ago
Hi, I just want to acknowledge that I've seen this PR, and that I'll try to get to it when time permits.
Thanks so much for taking the time to contribute!
Any chance this gets merged?
@frenzox I raised this PR almost exactly a year ago, looks like the whole JTD org/projects are dead, there's been no activity in any of the repos for months except for Dependabot PRs.
This is exactly what we need! Merging this in to my fork. Thank you!
Rust custom derives for all generated types: https://github.com/spindle-app/json-typedef-codegen/pull/4/files
This allows us to additional
use
statements orderive
macros on generated structs as per my request in #30rustCustomUse
is a string of use statments separated by;
It supports single and multi-import statements. For example:serde::{Deserialize, Serialize}
orserde::Serialize
are both valid.rustCustomDerive
is a string of derive identifers separated by,
For example:FromSqlRow,AsExpression,Debug,Default
JTD JSON Example:
Outputs the following: