Faster Rust Serialization (mo8it.com)
from snaggen@programming.dev to rust@programming.dev on 26 Oct 2023 06:51 +0000
https://programming.dev/post/4943206

#rust

d_k_bo@feddit.de on 26 Oct 2023 12:14 +0000

Therefore, if you want to define Serialize for OffsetDatetime for example, you need to use a wrapper type as a datetime formatter.

I think this example is a bit misleading because this specific type is usually (de-)serialized using #[serde(with = “time::serde::whatever”)].