From b1d5039eb2c93e7ea9424c1f5ed2d710e19ecf06 Mon Sep 17 00:00:00 2001 From: muzarski Date: Tue, 13 Feb 2024 01:26:25 +0100 Subject: [PATCH] response/result: re-export pub types Re-exported types that should be exposed to users. Re-exported types: - ColumnSpec - ColumnType - CqlValue - PartitionKeyIndex - Row - TableSpec Note for reviewers: As mentioned in https://github.com/scylladb/scylla-rust-driver/pull/925#discussion_r1475074404, we should not expose the `PreparedMetadata` structure. I believe the same applies to `ResultMetadata`. That's why I decided not to re-export them. --- scylla/src/lib.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scylla/src/lib.rs b/scylla/src/lib.rs index 14d802af29..21e2440919 100644 --- a/scylla/src/lib.rs +++ b/scylla/src/lib.rs @@ -118,8 +118,15 @@ pub mod frame { } pub mod response { + pub use scylla_cql::frame::response::cql_to_rust; pub(crate) use scylla_cql::frame::response::*; - pub use scylla_cql::frame::response::{cql_to_rust, result}; + + pub mod result { + pub(crate) use scylla_cql::frame::response::result::*; + pub use scylla_cql::frame::response::result::{ + ColumnSpec, ColumnType, CqlValue, PartitionKeyIndex, Row, TableSpec, + }; + } } }