You must log in or register to comment.
Therefore, if you want to define
Serialize
forOffsetDatetime
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")]
.