geozero
geozero copied to clipboard
Docs: Add example how to use with Serde
I have a struct that uses:
#[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Item {
pub id: i32,
pub coordinates: Option<Decode<geo_types::Geometry<f64>>>,
The #[derive(Seralize)]
produces the following error:
the trait
Serialize
is not implemented forgeozero::wkb::Decode<geo_types::Geometry>
Would it be possible to add an example to the docs showing hot to serialize a struct fetched with sqlx using Serde?
Any news about this?