Struct garage_model::bucket_table::Bucket
source · [−]pub struct Bucket {
pub id: Uuid,
pub state: Deletable<BucketParams>,
}
Expand description
A bucket is a collection of objects
Its parameters are not directly accessible as:
- It must be possible to merge paramaters, hence the use of a LWW CRDT.
- A bucket has 2 states, Present or Deleted and parameters make sense only if present.
Fields
id: Uuid
ID of the bucket
state: Deletable<BucketParams>
State, and configuration if not deleted, of the bucket
Implementations
Returns true if this represents a deleted bucket
Returns an option representing the parameters (None if in deleted state)
Mutable version of .params()
Return the list of authorized keys, when each was updated, and the permission associated to the key
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Get the key used to partition
Is the entry a tombstone? Default implementation always return false
Auto Trait Implementations
impl RefUnwindSafe for Bucket
impl UnwindSafe for Bucket
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more