pub struct ServiceTaskSpecResourcesReservationBuilder<___State = __ServiceTaskSpecResourcesReservationBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__GenericResources, __MemoryBytes, __NanoCpus> ServiceTaskSpecResourcesReservationBuilder<(__GenericResources, __MemoryBytes, __NanoCpus)>
impl<__GenericResources, __MemoryBytes, __NanoCpus> ServiceTaskSpecResourcesReservationBuilder<(__GenericResources, __MemoryBytes, __NanoCpus)>
sourcepub fn build_struct(self) -> ServiceTaskSpecResourcesReservationwhere
__GenericResources: IntoSet<Option<Box<Option<ServiceTaskSpecResourcesReservationGenericResources>>>, ServiceTaskSpecResourcesReservationBuilder__generic_resources>,
__MemoryBytes: IntoSet<Option<Box<Option<i32>>>, ServiceTaskSpecResourcesReservationBuilder__memory_bytes>,
__NanoCpus: IntoSet<Option<Box<Option<i32>>>, ServiceTaskSpecResourcesReservationBuilder__nano_cpus>,
pub fn build_struct(self) -> ServiceTaskSpecResourcesReservationwhere
__GenericResources: IntoSet<Option<Box<Option<ServiceTaskSpecResourcesReservationGenericResources>>>, ServiceTaskSpecResourcesReservationBuilder__generic_resources>,
__MemoryBytes: IntoSet<Option<Box<Option<i32>>>, ServiceTaskSpecResourcesReservationBuilder__memory_bytes>,
__NanoCpus: IntoSet<Option<Box<Option<i32>>>, ServiceTaskSpecResourcesReservationBuilder__nano_cpus>,
Finishes building and returns the requested object.
sourcepub fn maybe_generic_resources(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecResourcesReservationGenericResources>>>>,
) -> <Self as __ServiceTaskSpecResourcesReservationBuilderSetMember>::GenericResourceswhere
__GenericResources: IsUnset,
pub fn maybe_generic_resources(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecResourcesReservationGenericResources>>>>,
) -> <Self as __ServiceTaskSpecResourcesReservationBuilderSetMember>::GenericResourceswhere
__GenericResources: IsUnset,
Same as [Self::r#generic_resources
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn generic_resources(
self,
value: impl Into<Box<Option<ServiceTaskSpecResourcesReservationGenericResources>>>,
) -> <Self as __ServiceTaskSpecResourcesReservationBuilderSetMember>::GenericResourceswhere
__GenericResources: IsUnset,
pub fn generic_resources(
self,
value: impl Into<Box<Option<ServiceTaskSpecResourcesReservationGenericResources>>>,
) -> <Self as __ServiceTaskSpecResourcesReservationBuilderSetMember>::GenericResourceswhere
__GenericResources: IsUnset,
User-defined resources can be either Integer resources (e.g, SSD=3
) or String resources (e.g, GPU=UUID1)
sourcepub fn maybe_memory_bytes(
self,
value: Option<impl Into<Box<Option<i32>>>>,
) -> <Self as __ServiceTaskSpecResourcesReservationBuilderSetMember>::MemoryByteswhere
__MemoryBytes: IsUnset,
pub fn maybe_memory_bytes(
self,
value: Option<impl Into<Box<Option<i32>>>>,
) -> <Self as __ServiceTaskSpecResourcesReservationBuilderSetMember>::MemoryByteswhere
__MemoryBytes: IsUnset,
Same as [Self::r#memory_bytes
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn memory_bytes(
self,
value: impl Into<Box<Option<i32>>>,
) -> <Self as __ServiceTaskSpecResourcesReservationBuilderSetMember>::MemoryByteswhere
__MemoryBytes: IsUnset,
pub fn memory_bytes(
self,
value: impl Into<Box<Option<i32>>>,
) -> <Self as __ServiceTaskSpecResourcesReservationBuilderSetMember>::MemoryByteswhere
__MemoryBytes: IsUnset,
The amounf of memory in bytes the container allocates
Auto Trait Implementations§
impl<___State> Freeze for ServiceTaskSpecResourcesReservationBuilder<___State>where
___State: Freeze,
impl<___State> RefUnwindSafe for ServiceTaskSpecResourcesReservationBuilder<___State>where
___State: RefUnwindSafe,
impl<___State> Send for ServiceTaskSpecResourcesReservationBuilder<___State>where
___State: Send,
impl<___State> Sync for ServiceTaskSpecResourcesReservationBuilder<___State>where
___State: Sync,
impl<___State> Unpin for ServiceTaskSpecResourcesReservationBuilder<___State>where
___State: Unpin,
impl<___State> UnwindSafe for ServiceTaskSpecResourcesReservationBuilder<___State>where
___State: UnwindSafe,
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