Open wexgjduv opened 1 year ago
Hello,
I do not totally understand the problem. You're trying to insert Vec<String>
into String
. The schema should contain Array(String)
or you can use serde(with)
to somehow transform Vec<String>
into String
on your own.
Hi, I want to save vector of
Filter
s intomonitor
table:However, there's an error during the insertion.
How to write a vector of custom type(
Vec<Filter>
) and insert into the table?Do I need to write serialize and deserialize functions and specify with
#[serde(with = "filter_serde")]
infilters
field?Thanks.