Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Add example how to use with Serde #110

Open
tobias47n9e opened this issue Mar 12, 2023 · 1 comment
Open

Docs: Add example how to use with Serde #110

tobias47n9e opened this issue Mar 12, 2023 · 1 comment
Assignees

Comments

@tobias47n9e
Copy link

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 for geozero::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?

@tobias47n9e tobias47n9e changed the title Docs: Add example how to use with Serdie Docs: Add example how to use with Serde Mar 12, 2023
@pka pka self-assigned this Mar 12, 2023
@sergiomeneses

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants