Small changes in key model and refactoring

This commit is contained in:
Alex Auvolat
2022-01-04 18:59:17 +01:00
parent df35feba18
commit 677ab60cc1
7 changed files with 120 additions and 104 deletions
+6 -8
View File
@@ -21,14 +21,12 @@ pub struct BucketKeyPerm {
}
impl BucketKeyPerm {
pub fn no_permissions() -> Self {
Self {
timestamp: 0,
allow_read: false,
allow_write: false,
allow_owner: false,
}
}
pub const NO_PERMISSIONS: Self = Self {
timestamp: 0,
allow_read: false,
allow_write: false,
allow_owner: false,
};
}
impl Crdt for BucketKeyPerm {