@@ -29,17 +29,20 @@ use std::sync::Arc;
29
29
use thiserror:: Error ;
30
30
use uuid:: Uuid ;
31
31
32
+ #[ derive( Debug ) ]
32
33
pub enum CassResultKind {
33
34
NonRows ,
34
35
Rows ( CassRowsResult ) ,
35
36
}
36
37
38
+ #[ derive( Debug ) ]
37
39
pub struct CassRowsResult {
38
40
// Arc: shared with first_row (yoke).
39
41
pub ( crate ) shared_data : Arc < CassRowsResultSharedData > ,
40
42
pub ( crate ) first_row : Option < RowWithSelfBorrowedResultData > ,
41
43
}
42
44
45
+ #[ derive( Debug ) ]
43
46
pub ( crate ) struct CassRowsResultSharedData {
44
47
pub ( crate ) raw_rows : DeserializedMetadataAndRawRows ,
45
48
// Arc: shared with CassPrepared
@@ -53,6 +56,7 @@ impl FFI for CassNode {
53
56
type Origin = FromRef ;
54
57
}
55
58
59
+ #[ derive( Debug ) ]
56
60
pub struct CassResult {
57
61
pub tracing_id : Option < Uuid > ,
58
62
pub paging_state_response : PagingStateResponse ,
@@ -159,6 +163,7 @@ impl<'frame, 'metadata> DeserializeRow<'frame, 'metadata> for CassRawRow<'frame,
159
163
160
164
/// The lifetime of CassRow is bound to CassResult.
161
165
/// It will be freed, when CassResult is freed.(see #[cass_result_free])
166
+ #[ derive( Debug ) ]
162
167
pub struct CassRow < ' result > {
163
168
pub columns : Vec < CassValue < ' result > > ,
164
169
pub result_metadata : & ' result CassResultMetadata ,
@@ -230,7 +235,7 @@ mod row_with_self_borrowed_result_data {
230
235
231
236
/// A simple wrapper over CassRow.
232
237
/// Needed, so we can implement Yokeable for it, instead of implementing it for CassRow.
233
- #[ derive( Yokeable ) ]
238
+ #[ derive( Debug , Yokeable ) ]
234
239
struct CassRowWrapper < ' result > ( CassRow < ' result > ) ;
235
240
236
241
/// A wrapper over struct which self-borrows the metadata allocated using Arc.
@@ -243,6 +248,7 @@ mod row_with_self_borrowed_result_data {
243
248
///
244
249
/// This struct is a shared owner of the row bytes and metadata, and self-borrows this data
245
250
/// to the `CassRow` it contains.
251
+ #[ derive( Debug ) ]
246
252
pub struct RowWithSelfBorrowedResultData (
247
253
Yoke < CassRowWrapper < ' static > , Arc < CassRowsResultSharedData > > ,
248
254
) ;
@@ -307,6 +313,7 @@ pub(crate) mod cass_raw_value {
307
313
use scylla:: errors:: { DeserializationError , TypeCheckError } ;
308
314
use thiserror:: Error ;
309
315
316
+ #[ derive( Debug ) ]
310
317
pub ( crate ) struct CassRawValue < ' frame , ' metadata > {
311
318
typ : & ' metadata ColumnType < ' metadata > ,
312
319
slice : Option < FrameSlice < ' frame > > ,
@@ -428,6 +435,7 @@ pub(crate) mod cass_raw_value {
428
435
}
429
436
}
430
437
438
+ #[ derive( Debug ) ]
431
439
pub struct CassValue < ' result > {
432
440
pub ( crate ) value : CassRawValue < ' result , ' result > ,
433
441
pub ( crate ) value_type : & ' result Arc < CassDataType > ,
0 commit comments