Skip to content

Commit aeb10d1

Browse files
committed
Add common derives for integration.
1 parent cf681c3 commit aeb10d1

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

mp2-v1/src/query/batching_planner.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use ryhope::{
1010
storage::{updatetree::UpdateTree, WideLineage},
1111
Epoch,
1212
};
13+
use serde::{Deserialize, Serialize};
1314
use verifiable_db::query::{
1415
api::{NodePath, RowInput, TreePathInputs},
1516
computational_hash_ids::ColumnIDs,
@@ -195,8 +196,10 @@ async fn generate_chunks<const CHUNK_SIZE: usize, C: ContextProvider>(
195196
///
196197
/// (2,0) (2,1) (2,2) (2,3) (2,4)
197198
/// ```
198-
#[derive(Clone, Debug, Hash, Eq, PartialEq, Default)]
199-
pub struct UTKey<const ARITY: usize>((usize, usize));
199+
#[derive(
200+
Clone, Copy, Debug, Default, PartialEq, PartialOrd, Ord, Eq, Hash, Serialize, Deserialize,
201+
)]
202+
pub struct UTKey<const ARITY: usize>(pub (usize, usize));
200203

201204
impl<const ARITY: usize> UTKey<ARITY> {
202205
/// Compute the key of the child node of `self` that has `num_left_siblings`

mp2-v1/src/query/planner.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl<'a, C: ContextProvider> NonExistenceInput<'a, C> {
6565
}
6666
}
6767

68-
pub(crate) async fn find_row_node_for_non_existence(
68+
pub async fn find_row_node_for_non_existence(
6969
&self,
7070
primary: BlockPrimaryIndex,
7171
) -> anyhow::Result<RowTreeKey> {

verifiable-db/src/query/api.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ impl NodePath {
119119
}
120120
}
121121

122-
#[derive(Clone, Debug)]
122+
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
123123
/// Data structure containing the inputs necessary to prove a query for a row
124124
/// of the DB table.
125125
pub struct RowInput {

0 commit comments

Comments
 (0)