blob: 8f5f8b545dc85cc271c8b1f27d13b923efd654ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
use uuid::Uuid;
use crate::vector_clock::VectorClock;
pub struct Op {
pub(crate) id: Uuid,
pub(crate) clock: VectorClock,
pub(crate) kind: OpKind,
}
pub enum OpKind {
CreateGrid(CreateGrid),
ChangeSubdivisions(ChangeSubdivisions),
}
pub struct CreateGrid {
pub(crate) rows: usize,
pub(crate) base_cells_per_row: usize,
}
pub struct ChangeSubdivisions {}
|