Struct garage_model::bucket_table::Bucket [−][src]
pub struct Bucket {
pub name: String,
pub state: Lww<BucketState>,
}
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
name: String
Name of the bucket
state: Lww<BucketState>
State, and configuration if not deleted, of the bucket
Implementations
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