Skip to content

Commit a8cc520

Browse files
committed
DeserializedMetadataAndRawRows: derive Clone
This type will soon be stored in QueryResult. QueryResult is Clone, so this needs to be as well.
1 parent f0749ac commit a8cc520

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scylla-cql/src/frame/response/result.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ impl<'a> ResultMetadata<'a> {
445445
/// of `ResultMetadata`:
446446
/// 1. owning it in a borrowed form, self-borrowed from the RESULT:Rows frame;
447447
/// 2. sharing ownership of metadata cached in PreparedStatement.
448-
#[derive(Debug)]
448+
#[derive(Debug, Clone)]
449449
pub enum ResultMetadataHolder {
450450
/// [ResultMetadata] that is self-borrowed from the RESULT:Rows frame.
451451
SelfBorrowed(SelfBorrowedMetadataContainer),
@@ -661,7 +661,7 @@ use super::custom_type_parser::CustomTypeParser;
661661
/// RESULT:Rows response, in partially serialized form.
662662
///
663663
/// Paging state and metadata are deserialized, rows remain serialized.
664-
#[derive(Debug)]
664+
#[derive(Debug, Clone)]
665665
pub struct DeserializedMetadataAndRawRows {
666666
metadata: ResultMetadataHolder,
667667
rows_count: usize,

0 commit comments

Comments
 (0)