pub struct QuotaSpecBuilder { /* private fields */ }
Expand description
Builder for QuotaSpec
.
Implementations§
Source§impl QuotaSpecBuilder
impl QuotaSpecBuilder
Sourcepub fn create_index(&mut self, value: u64) -> &mut Self
pub fn create_index(&mut self, value: u64) -> &mut Self
Raft indexes to track creation and modification
pub fn modify_index(&mut self, value: u64) -> &mut Self
Sourcepub fn description(&mut self, value: String) -> &mut Self
pub fn description(&mut self, value: String) -> &mut Self
Description is an optional description for the quota object
Sourcepub fn limits(&mut self, value: Vec<QuotaLimit>) -> &mut Self
pub fn limits(&mut self, value: Vec<QuotaLimit>) -> &mut Self
Limits is the set of quota limits encapsulated by this quota object. Each limit applies quota in a particular region and in the future over a particular priority range and datacenter set.
Trait Implementations§
Source§impl Clone for QuotaSpecBuilder
impl Clone for QuotaSpecBuilder
Source§fn clone(&self) -> QuotaSpecBuilder
fn clone(&self) -> QuotaSpecBuilder
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 QuotaSpecBuilder
impl RefUnwindSafe for QuotaSpecBuilder
impl Send for QuotaSpecBuilder
impl Sync for QuotaSpecBuilder
impl Unpin for QuotaSpecBuilder
impl UnwindSafe for QuotaSpecBuilder
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