対処方法
chronoパッケージのchronoフィーチャーフラグを有効にします。
Cargo.toml
[dependencies]
schemars = { version = "0.8", features = ["chrono"] }
エラー全文
error[E0277]: the trait bound `DateTime<Utc>: JsonSchema` is not satisfied
--> src/main.rs:22:48
|
22 | #[derive(Deserialize, Serialize, Clone, Debug, JsonSchema)]
| ^^^^^^^^^^ the trait `JsonSchema` is not implemented for `DateTime<Utc>`