我具有以下数据结构
#[derive(Serialize, Debug)]
pub struct TestEvent {
id: i32,
event_mask: bit_vec::BitVec
}
从数据库中获取该字段的值时,我得到了
错误the trait `postgres::types::FromSql` is not implemented for `bit_vec::BitVec`
FromSql standard提到特质需要 通过我启用的位vec启用
postgres = { version = "0.14", features = ["with-chrono", "with-bit-vec"] }
bit-vec = {version = "0.6.1", features = ["serde"]}
仍然出现同样的错误。