This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new 0b7f959f5 feat(rust/core): derive Copy, Eq, PartialEq (#3716) (#3974)
0b7f959f5 is described below
commit 0b7f959f5f19f473dec42225ac12c35c11e0dd7f
Author: oglego <[email protected]>
AuthorDate: Sun Feb 15 19:10:54 2026 -0600
feat(rust/core): derive Copy, Eq, PartialEq (#3716) (#3974)
### Description
This PR addresses a paper cut mentioned in issue #3716 - enums should
derive Copy, Eq, and PartialEq.
Fixes #3716
---
rust/core/src/options.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rust/core/src/options.rs b/rust/core/src/options.rs
index 91c0f06b7..21906d42c 100644
--- a/rust/core/src/options.rs
+++ b/rust/core/src/options.rs
@@ -219,7 +219,7 @@ impl TryFrom<u32> for InfoCode {
}
/// Depth parameter for [get_objects][crate::Connection::get_objects] method.
-#[derive(Debug)]
+#[derive(Debug, Clone, Copy, Eq, PartialEq)]
pub enum ObjectDepth {
/// Catalogs, schemas, tables, and columns.
All,
@@ -523,7 +523,7 @@ impl From<IsolationLevel> for OptionValue {
}
/// Ingestion mode value for key [OptionStatement::IngestMode].
-#[derive(Debug)]
+#[derive(Debug, Clone, Copy, Eq, PartialEq)]
pub enum IngestMode {
/// Create the table and insert data; error if the table exists.
Create,