pub struct QuotaLimitBuilder { /* private fields */ }
Expand description
Builder for QuotaLimit
.
Implementations§
Source§impl QuotaLimitBuilder
impl QuotaLimitBuilder
Sourcepub fn region(&mut self, value: String) -> &mut Self
pub fn region(&mut self, value: String) -> &mut Self
Region is the region in which this limit has affect
Sourcepub fn region_limit(&mut self, value: Option<Resources>) -> &mut Self
pub fn region_limit(&mut self, value: Option<Resources>) -> &mut Self
RegionLimit is the quota limit that applies to any allocation within a referencing namespace in the region. A value of zero is treated as unlimited and a negative value is treated as fully disallowed. This is useful for once we support GPUs
Sourcepub fn variables_limit(&mut self, value: Option<i64>) -> &mut Self
pub fn variables_limit(&mut self, value: Option<i64>) -> &mut Self
VariablesLimit is the maximum total size of all variables Variable.EncryptedData. A value of zero is treated as unlimited and a negative value is treated as fully disallowed.
Sourcepub fn hash(&mut self, value: Vec<u8>) -> &mut Self
pub fn hash(&mut self, value: Vec<u8>) -> &mut Self
Hash is the hash of the object and is used to make replication efficient.
Sourcepub fn build(&self) -> Result<QuotaLimit, QuotaLimitBuilderError>
pub fn build(&self) -> Result<QuotaLimit, QuotaLimitBuilderError>
Trait Implementations§
Source§impl Clone for QuotaLimitBuilder
impl Clone for QuotaLimitBuilder
Source§fn clone(&self) -> QuotaLimitBuilder
fn clone(&self) -> QuotaLimitBuilder
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 moreAuto Trait Implementations§
impl Freeze for QuotaLimitBuilder
impl RefUnwindSafe for QuotaLimitBuilder
impl Send for QuotaLimitBuilder
impl Sync for QuotaLimitBuilder
impl Unpin for QuotaLimitBuilder
impl UnwindSafe for QuotaLimitBuilder
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