--> arysn/src/geometry_point.rs:44:23
|
44 | ToSql::to_sql(&geo_types::Point::new(self.0.clone().x,self.0.clone().y), ty, out)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `tokio_postgres::types::ToSql` is not implemented for `geo_types::Point<f64>`
|
I've checked This trait is implemented for this type as mentioned in documentation.
In addition, some implementations are provided for types in third party crates. These are disabled by default; to opt into one of these implementations, activate the Cargo feature corresponding to the crate's name prefixed by with- . For example, the with-serde_json-1 feature enables the implementation for the serde_json::Value type.
As states you will need to activate that feature in your Cargo.toml:
tokio-postgres = { version = "0.5", features = ["with-geo-types"] }