#[non_exhaustive]pub struct MaximumAllowedResourcesBuilder { /* private fields */ }Expand description
A builder for MaximumAllowedResources.
Implementations§
source§impl MaximumAllowedResourcesBuilder
impl MaximumAllowedResourcesBuilder
sourcepub fn set_cpu(self, input: Option<String>) -> Self
pub fn set_cpu(self, input: Option<String>) -> Self
The maximum allowed CPU for an application.
sourcepub fn memory(self, input: impl Into<String>) -> Self
pub fn memory(self, input: impl Into<String>) -> Self
The maximum allowed resources for an application.
sourcepub fn set_memory(self, input: Option<String>) -> Self
pub fn set_memory(self, input: Option<String>) -> Self
The maximum allowed resources for an application.
sourcepub fn get_memory(&self) -> &Option<String>
pub fn get_memory(&self) -> &Option<String>
The maximum allowed resources for an application.
sourcepub fn disk(self, input: impl Into<String>) -> Self
pub fn disk(self, input: impl Into<String>) -> Self
The maximum allowed disk for an application.
sourcepub fn set_disk(self, input: Option<String>) -> Self
pub fn set_disk(self, input: Option<String>) -> Self
The maximum allowed disk for an application.
sourcepub fn build(self) -> MaximumAllowedResources
pub fn build(self) -> MaximumAllowedResources
Consumes the builder and constructs a MaximumAllowedResources.
Trait Implementations§
source§impl Clone for MaximumAllowedResourcesBuilder
impl Clone for MaximumAllowedResourcesBuilder
source§fn clone(&self) -> MaximumAllowedResourcesBuilder
fn clone(&self) -> MaximumAllowedResourcesBuilder
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 Default for MaximumAllowedResourcesBuilder
impl Default for MaximumAllowedResourcesBuilder
source§fn default() -> MaximumAllowedResourcesBuilder
fn default() -> MaximumAllowedResourcesBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<MaximumAllowedResourcesBuilder> for MaximumAllowedResourcesBuilder
impl PartialEq<MaximumAllowedResourcesBuilder> for MaximumAllowedResourcesBuilder
source§fn eq(&self, other: &MaximumAllowedResourcesBuilder) -> bool
fn eq(&self, other: &MaximumAllowedResourcesBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MaximumAllowedResourcesBuilder
Auto Trait Implementations§
impl RefUnwindSafe for MaximumAllowedResourcesBuilder
impl Send for MaximumAllowedResourcesBuilder
impl Sync for MaximumAllowedResourcesBuilder
impl Unpin for MaximumAllowedResourcesBuilder
impl UnwindSafe for MaximumAllowedResourcesBuilder
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