diff --git a/src/config.rs b/src/config.rs index 194ee59..1c2220c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -9,6 +9,7 @@ use crate::{Connection, Result}; /// Database Connection Configuration Options /// See [Database Connection Configuration Options](https://sqlite.org/c3ref/c_dbconfig_enable_fkey.html) for details. #[repr(i32)] +#[derive(Copy, Clone, Debug)] #[allow(non_snake_case, non_camel_case_types)] #[non_exhaustive] #[allow(clippy::upper_case_acronyms)] diff --git a/src/functions.rs b/src/functions.rs index 522f116..576d1b0 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)] #[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/limits.rs b/src/limits.rs index d0694e3..f61b2b8 100644 --- a/src/limits.rs +++ b/src/limits.rs @@ -9,6 +9,7 @@ use std::os::raw::c_int; /// See the official documentation for more information: /// - /// - +#[derive(Copy, Clone, Debug)] #[repr(i32)] #[non_exhaustive] #[allow(clippy::upper_case_acronyms, non_camel_case_types)] diff --git a/src/types/mod.rs b/src/types/mod.rs index 4dbc19d..97059a3 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -111,7 +111,7 @@ pub struct Null; /// SQLite data types. /// See [Fundamental Datatypes](https://sqlite.org/c3ref/c_blob.html). -#[derive(Clone, Debug, PartialEq, Eq)] +#[derive(Copy, Clone, Debug, PartialEq, Eq)] pub enum Type { /// NULL Null, diff --git a/src/vtab/mod.rs b/src/vtab/mod.rs index 7e2f5f5..4ee1693 100644 --- a/src/vtab/mod.rs +++ b/src/vtab/mod.rs @@ -373,6 +373,7 @@ bitflags::bitflags! { /// Virtual table scan flags /// See [Function Flags](https://sqlite.org/c3ref/c_index_scan_unique.html) for details. #[repr(C)] + #[derive(Copy, Clone, Debug)] pub struct IndexFlags: ::std::os::raw::c_int { /// Default const NONE = 0;