Implement CreateBucket

This commit is contained in:
Alex Auvolat
2022-01-05 15:56:48 +01:00
parent 9431090b1e
commit 8395030e48
5 changed files with 166 additions and 28 deletions
+11
View File
@@ -27,6 +27,17 @@ impl BucketKeyPerm {
allow_write: false,
allow_owner: false,
};
pub const ALL_PERMISSIONS: Self = Self {
timestamp: 0,
allow_read: true,
allow_write: true,
allow_owner: true,
};
pub fn is_any(&self) -> bool {
self.allow_read || self.allow_write || self.allow_owner
}
}
impl Crdt for BucketKeyPerm {