diff --git a/src/functions.rs b/src/functions.rs index 7d9eeb73a..8afc990fd 100644 --- a/src/functions.rs +++ b/src/functions.rs @@ -311,6 +311,7 @@ bitflags::bitflags! { /// Function Flags. /// See [sqlite3_create_function](https://sqlite.org/c3ref/create_function.html) /// and [Function Flags](https://sqlite.org/c3ref/c_deterministic.html) for details. + #[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] #[repr(C)] pub struct FunctionFlags: ::std::os::raw::c_int { /// Specifies UTF-8 as the text encoding this SQL function prefers for its parameters. diff --git a/src/vtab/mod.rs b/src/vtab/mod.rs index 7e2f5f54f..bdf2d2a3c 100644 --- a/src/vtab/mod.rs +++ b/src/vtab/mod.rs @@ -372,6 +372,7 @@ impl From for IndexConstraintOp { bitflags::bitflags! { /// Virtual table scan flags /// See [Function Flags](https://sqlite.org/c3ref/c_index_scan_unique.html) for details. + #[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)] #[repr(C)] pub struct IndexFlags: ::std::os::raw::c_int { /// Default diff --git a/src/vtab/series.rs b/src/vtab/series.rs index 5b6775814..766c64878 100644 --- a/src/vtab/series.rs +++ b/src/vtab/series.rs @@ -28,7 +28,7 @@ const SERIES_COLUMN_STOP: c_int = 2; const SERIES_COLUMN_STEP: c_int = 3; bitflags::bitflags! { - #[derive(Clone, Copy)] + #[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)] #[repr(C)] struct QueryPlanFlags: ::std::os::raw::c_int { // start = $value -- constraint exists