mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-25 03:46:49 +00:00
Small changes in key model and refactoring
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user