@@ -29,17 +29,20 @@ use std::sync::Arc;
2929use thiserror:: Error ;
3030use uuid:: Uuid ;
3131
32+ #[ derive( Debug ) ]
3233pub enum CassResultKind {
3334 NonRows ,
3435 Rows ( CassRowsResult ) ,
3536}
3637
38+ #[ derive( Debug ) ]
3739pub struct CassRowsResult {
3840 // Arc: shared with first_row (yoke).
3941 pub ( crate ) shared_data : Arc < CassRowsResultSharedData > ,
4042 pub ( crate ) first_row : Option < RowWithSelfBorrowedResultData > ,
4143}
4244
45+ #[ derive( Debug ) ]
4346pub ( crate ) struct CassRowsResultSharedData {
4447 pub ( crate ) raw_rows : DeserializedMetadataAndRawRows ,
4548 // Arc: shared with CassPrepared
@@ -53,6 +56,7 @@ impl FFI for CassNode {
5356 type Origin = FromRef ;
5457}
5558
59+ #[ derive( Debug ) ]
5660pub struct CassResult {
5761 pub tracing_id : Option < Uuid > ,
5862 pub paging_state_response : PagingStateResponse ,
@@ -159,6 +163,7 @@ impl<'frame, 'metadata> DeserializeRow<'frame, 'metadata> for CassRawRow<'frame,
159163
160164/// The lifetime of CassRow is bound to CassResult.
161165/// It will be freed, when CassResult is freed.(see #[cass_result_free])
166+ #[ derive( Debug ) ]
162167pub struct CassRow < ' result > {
163168 pub columns : Vec < CassValue < ' result > > ,
164169 pub result_metadata : & ' result CassResultMetadata ,
@@ -230,7 +235,7 @@ mod row_with_self_borrowed_result_data {
230235
231236 /// A simple wrapper over CassRow.
232237 /// Needed, so we can implement Yokeable for it, instead of implementing it for CassRow.
233- #[ derive( Yokeable ) ]
238+ #[ derive( Debug , Yokeable ) ]
234239 struct CassRowWrapper < ' result > ( CassRow < ' result > ) ;
235240
236241 /// A wrapper over struct which self-borrows the metadata allocated using Arc.
@@ -243,6 +248,7 @@ mod row_with_self_borrowed_result_data {
243248 ///
244249 /// This struct is a shared owner of the row bytes and metadata, and self-borrows this data
245250 /// to the `CassRow` it contains.
251+ #[ derive( Debug ) ]
246252 pub struct RowWithSelfBorrowedResultData (
247253 Yoke < CassRowWrapper < ' static > , Arc < CassRowsResultSharedData > > ,
248254 ) ;
@@ -307,6 +313,7 @@ pub(crate) mod cass_raw_value {
307313 use scylla:: errors:: { DeserializationError , TypeCheckError } ;
308314 use thiserror:: Error ;
309315
316+ #[ derive( Debug ) ]
310317 pub ( crate ) struct CassRawValue < ' frame , ' metadata > {
311318 typ : & ' metadata ColumnType < ' metadata > ,
312319 slice : Option < FrameSlice < ' frame > > ,
@@ -428,6 +435,7 @@ pub(crate) mod cass_raw_value {
428435 }
429436}
430437
438+ #[ derive( Debug ) ]
431439pub struct CassValue < ' result > {
432440 pub ( crate ) value : CassRawValue < ' result , ' result > ,
433441 pub ( crate ) value_type : & ' result Arc < CassDataType > ,
0 commit comments