I have following data structure
#[derive(Serialize, Debug)]
pub struct TestEvent {
id: i32,
event_mask: bit_vec::BitVec
}
While fetching value for this field from database, I am getting error as
the trait `postgres::types::FromSql` is not implemented for `bit_vec::BitVec`
FromSql standard mentions that trait needs to be enabled for bit-vec which I enabled through
postgres = { version = "0.14", features = ["with-chrono", "with-bit-vec"] }
bit-vec = {version = "0.6.1", features = ["serde"]}
Still I am getting that same error.