mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-12-14 11:18:58 -05:00
11 lines
283 B
Rust
11 lines
283 B
Rust
|
|
struct StateDiff {
|
||
|
|
parent: Option<u64>,
|
||
|
|
added: Vec<CompressedStateEvent>,
|
||
|
|
removed: Vec<CompressedStateEvent>,
|
||
|
|
}
|
||
|
|
|
||
|
|
pub trait Data {
|
||
|
|
fn get_statediff(shortstatehash: u64) -> Result<StateDiff>;
|
||
|
|
fn save_statediff(shortstatehash: u64, diff: StateDiff) -> Result<()>;
|
||
|
|
}
|