Quantcast
Channel: Serialize is not implemented for PgRange - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Caesar for Serialize is not implemented for PgRange

There are quite a few ways to go on about this.My favourite serde trick, use the container attribute#[serde(into = "ReservationWorkaround")] on struct Reservation and add an impl...

View Article



Serialize is not implemented for PgRange

I would like to be able to serialize a struct containing PgRange<DateTime<Utc>> however, #[derive(Serialize)] fails for struct Reservation with the error:pub timespan:...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images