neo4j-labs / neo4rs

Rust driver for Neo4j
https://docs.rs/neo4rs
205 stars 59 forks source link

Unable to deserialise tuple struct #139

Closed s1ck closed 1 year ago

s1ck commented 1 year ago

I am trying to do sth like:

#[derive(Deserialize, Debug)]
pub struct MyString(String);

#[derive(Deserialize, Debug)]
pub struct MyThing {
  my_string: MyString,
}

and I get:

Error: InvalidType { received: Str("foobar"), expected: "tuple struct MyString" }