Faster Rust Serialization (
from to on 26 Oct 2023 06:51 +0000

#rust 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”)].