pub struct BucketLimitsBuilder { /* private fields */ }Expand description
Builder for BucketLimits.
Implementations§
Source§impl BucketLimitsBuilder
impl BucketLimitsBuilder
Sourcepub fn max_total_size<VALUE: Into<Uint128>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn max_total_size<VALUE: Into<Uint128>>( &mut self, value: VALUE, ) -> &mut Self
The maximum total size of the objects in the bucket.
Sourcepub fn max_objects<VALUE: Into<Uint128>>(&mut self, value: VALUE) -> &mut Self
pub fn max_objects<VALUE: Into<Uint128>>(&mut self, value: VALUE) -> &mut Self
The maximum number of objects in the bucket.
Sourcepub fn max_object_size<VALUE: Into<Uint128>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn max_object_size<VALUE: Into<Uint128>>( &mut self, value: VALUE, ) -> &mut Self
The maximum size of the objects in the bucket.
Sourcepub fn max_object_pins<VALUE: Into<Uint128>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn max_object_pins<VALUE: Into<Uint128>>( &mut self, value: VALUE, ) -> &mut Self
The maximum number of pins in the bucket for an object.
Sourcepub fn build(&self) -> Result<BucketLimits, BucketLimitsBuilderError>
pub fn build(&self) -> Result<BucketLimits, BucketLimitsBuilderError>
Trait Implementations§
Source§impl Clone for BucketLimitsBuilder
impl Clone for BucketLimitsBuilder
Source§fn clone(&self) -> BucketLimitsBuilder
fn clone(&self) -> BucketLimitsBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BucketLimitsBuilder
impl RefUnwindSafe for BucketLimitsBuilder
impl Send for BucketLimitsBuilder
impl Sync for BucketLimitsBuilder
impl Unpin for BucketLimitsBuilder
impl UnsafeUnpin for BucketLimitsBuilder
impl UnwindSafe for BucketLimitsBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more