A little #rust #serde #chrono question: I have a json document storing datetime as "2024-01-23T09:50" . Deserialization with serde to chrono::NaiveDateTime fails because it expects seconds which are missing. Do I really have to implement my custom Deserializer module with #[serde(with = "my_date_format")] or is there a more straightforward way?
Edit: playground example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=bc65599ce17c4cab97a9c171632b0ed8