Struct garage_model::bucket_table::BucketQuotas
source · Fields§
§max_size: Option<u64>
Maximum size in bytes (bucket size = sum of sizes of objects in the bucket)
max_objects: Option<u64>
Maximum number of non-deleted objects in the bucket
Trait Implementations§
source§impl AutoCrdt for BucketQuotas
impl AutoCrdt for BucketQuotas
source§const WARN_IF_DIFFERENT: bool = true
const WARN_IF_DIFFERENT: bool = true
WARN_IF_DIFFERENT: emit a warning when values differ. Set this to true if
different values in your application should never happen. Set this to false
if you are actually relying on the semantics of
a ⊔ b = max(a, b)
.source§impl Clone for BucketQuotas
impl Clone for BucketQuotas
source§fn clone(&self) -> BucketQuotas
fn clone(&self) -> BucketQuotas
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BucketQuotas
impl Debug for BucketQuotas
source§impl Default for BucketQuotas
impl Default for BucketQuotas
source§fn default() -> BucketQuotas
fn default() -> BucketQuotas
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BucketQuotas
impl<'de> Deserialize<'de> for BucketQuotas
source§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
source§impl Ord for BucketQuotas
impl Ord for BucketQuotas
source§fn cmp(&self, other: &BucketQuotas) -> Ordering
fn cmp(&self, other: &BucketQuotas) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<BucketQuotas> for BucketQuotas
impl PartialEq<BucketQuotas> for BucketQuotas
source§fn eq(&self, other: &BucketQuotas) -> bool
fn eq(&self, other: &BucketQuotas) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<BucketQuotas> for BucketQuotas
impl PartialOrd<BucketQuotas> for BucketQuotas
source§fn partial_cmp(&self, other: &BucketQuotas) -> Option<Ordering>
fn partial_cmp(&self, other: &BucketQuotas) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more