Skip to content

Commit

Permalink
query, resp: Add misc trait impls to dynlist types
Browse files Browse the repository at this point in the history
  • Loading branch information
ohsayan committed Jul 23, 2024
1 parent c2337cb commit 4a11320
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ const LIST_SYM_OPEN: u8 = 0x09;
const LIST_SYM_CLOSE: u8 = ']' as u8;

/// A list type representing a Skyhash list type, used in parameter lists
#[derive(Debug, PartialEq, Clone)]
pub struct QList<'a, T: SQParam> {
l: &'a [T],
}
Expand Down
1 change: 1 addition & 0 deletions src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ impl<T: FromRow> Deref for Rows<T> {
}

/// A list received from a response
#[derive(Debug, PartialEq, Clone)]
pub struct RList<T: FromValue = Value>(Vec<T>);

impl<T: FromValue> RList<T> {
Expand Down

0 comments on commit 4a11320

Please sign in to comment.