Extract utils
This commit is contained in:
parent
295cdf585b
commit
bbabeeb3f3
6 changed files with 200 additions and 0 deletions
11
backend/reconcile/src/utils/ordered_operation.rs
Normal file
11
backend/reconcile/src/utils/ordered_operation.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#[cfg(feature = "serde")]
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::operations::Operation;
|
||||
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub struct OrderedOperation {
|
||||
pub order: usize,
|
||||
pub operation: Operation,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue