Struct garage_model::bucket_table::BucketQuotas
source · pub struct BucketQuotas {
pub max_size: Option<u64>,
pub max_objects: Option<u64>,
}
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 for BucketQuotas
impl PartialEq 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 for BucketQuotas
impl PartialOrd 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 moresource§impl Serialize for BucketQuotas
impl Serialize for BucketQuotas
impl Eq for BucketQuotas
impl StructuralPartialEq for BucketQuotas
Auto Trait Implementations§
impl Freeze for BucketQuotas
impl RefUnwindSafe for BucketQuotas
impl Send for BucketQuotas
impl Sync for BucketQuotas
impl Unpin for BucketQuotas
impl UnwindSafe for BucketQuotas
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.