attempt at documenting model crate

This commit is contained in:
Trinity Pointard
2021-03-26 21:53:28 +01:00
parent 30bec0758b
commit 92d54770bb
8 changed files with 119 additions and 15 deletions
+3
View File
@@ -11,12 +11,15 @@ use crate::block::*;
#[derive(PartialEq, Clone, Debug, Serialize, Deserialize)]
pub struct BlockRef {
// Primary key
/// Hash of the block
pub block: Hash,
// Sort key
// why a version on a hashed (probably immutable) piece of data?
pub version: UUID,
// Keep track of deleted status
/// Is that block deleted
pub deleted: crdt::Bool,
}