#[non_exhaustive]pub struct MaximumAllowedResourcesBuilder { /* private fields */ }
Expand description
A builder for MaximumAllowedResources
.
Implementations§
source§impl MaximumAllowedResourcesBuilder
impl MaximumAllowedResourcesBuilder
sourcepub fn cpu(self, input: impl Into<String>) -> Self
pub fn cpu(self, input: impl Into<String>) -> Self
The maximum allowed CPU for an application.
This field is required.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.
This field is required.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) -> Result<MaximumAllowedResources, BuildError>
pub fn build(self) -> Result<MaximumAllowedResources, BuildError>
Consumes the builder and constructs a MaximumAllowedResources
.
This method will fail if any of the following fields are not set:
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 for MaximumAllowedResourcesBuilder
impl PartialEq 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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.