pub struct QuotaResourcesBuilder { /* private fields */ }
Expand description
Builder for QuotaResources
.
Implementations§
Source§impl QuotaResourcesBuilder
impl QuotaResourcesBuilder
pub fn cpu(&mut self, value: Option<i64>) -> &mut Self
pub fn cores(&mut self, value: Option<i64>) -> &mut Self
pub fn memory_mb(&mut self, value: Option<i64>) -> &mut Self
pub fn memory_max_mb(&mut self, value: Option<i64>) -> &mut Self
pub fn devices(&mut self, value: Vec<RequestedDevice>) -> &mut Self
pub fn numa(&mut self, value: Option<NumaResource>) -> &mut Self
pub fn secrets_mb(&mut self, value: Option<i64>) -> &mut Self
pub fn storage(&mut self, value: Option<QuotaStorageResources>) -> &mut Self
Sourcepub fn build(&self) -> Result<QuotaResources, QuotaResourcesBuilderError>
pub fn build(&self) -> Result<QuotaResources, QuotaResourcesBuilderError>
Trait Implementations§
Source§impl Clone for QuotaResourcesBuilder
impl Clone for QuotaResourcesBuilder
Source§fn clone(&self) -> QuotaResourcesBuilder
fn clone(&self) -> QuotaResourcesBuilder
Returns a duplicate 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 QuotaResourcesBuilder
impl RefUnwindSafe for QuotaResourcesBuilder
impl Send for QuotaResourcesBuilder
impl Sync for QuotaResourcesBuilder
impl Unpin for QuotaResourcesBuilder
impl UnwindSafe for QuotaResourcesBuilder
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