pub struct ServiceTaskSpecResourcesBuilder<___State = __ServiceTaskSpecResourcesBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__Limits, __Reservation> ServiceTaskSpecResourcesBuilder<(__Limits, __Reservation)>
impl<__Limits, __Reservation> ServiceTaskSpecResourcesBuilder<(__Limits, __Reservation)>
sourcepub fn build_struct(self) -> ServiceTaskSpecResourceswhere
__Limits: IntoSet<Option<Box<Option<ServiceTaskSpecResourcesLimits>>>, ServiceTaskSpecResourcesBuilder__limits>,
__Reservation: IntoSet<Option<Box<Option<ServiceTaskSpecResourcesReservation>>>, ServiceTaskSpecResourcesBuilder__reservation>,
pub fn build_struct(self) -> ServiceTaskSpecResourceswhere
__Limits: IntoSet<Option<Box<Option<ServiceTaskSpecResourcesLimits>>>, ServiceTaskSpecResourcesBuilder__limits>,
__Reservation: IntoSet<Option<Box<Option<ServiceTaskSpecResourcesReservation>>>, ServiceTaskSpecResourcesBuilder__reservation>,
Finishes building and returns the requested object.
sourcepub fn maybe_limits(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecResourcesLimits>>>>,
) -> <Self as __ServiceTaskSpecResourcesBuilderSetMember>::Limitswhere
__Limits: IsUnset,
pub fn maybe_limits(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecResourcesLimits>>>>,
) -> <Self as __ServiceTaskSpecResourcesBuilderSetMember>::Limitswhere
__Limits: IsUnset,
Same as [Self::r#limits
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn limits(
self,
value: impl Into<Box<Option<ServiceTaskSpecResourcesLimits>>>,
) -> <Self as __ServiceTaskSpecResourcesBuilderSetMember>::Limitswhere
__Limits: IsUnset,
pub fn limits(
self,
value: impl Into<Box<Option<ServiceTaskSpecResourcesLimits>>>,
) -> <Self as __ServiceTaskSpecResourcesBuilderSetMember>::Limitswhere
__Limits: IsUnset,
Describes the resources which can be advertised by a node and requested by a task
sourcepub fn maybe_reservation(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecResourcesReservation>>>>,
) -> <Self as __ServiceTaskSpecResourcesBuilderSetMember>::Reservationwhere
__Reservation: IsUnset,
pub fn maybe_reservation(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecResourcesReservation>>>>,
) -> <Self as __ServiceTaskSpecResourcesBuilderSetMember>::Reservationwhere
__Reservation: IsUnset,
Same as [Self::r#reservation
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn reservation(
self,
value: impl Into<Box<Option<ServiceTaskSpecResourcesReservation>>>,
) -> <Self as __ServiceTaskSpecResourcesBuilderSetMember>::Reservationwhere
__Reservation: IsUnset,
pub fn reservation(
self,
value: impl Into<Box<Option<ServiceTaskSpecResourcesReservation>>>,
) -> <Self as __ServiceTaskSpecResourcesBuilderSetMember>::Reservationwhere
__Reservation: IsUnset,
An object describing the resources which can be advertised by a node and requested by a task
Auto Trait Implementations§
impl<___State> Freeze for ServiceTaskSpecResourcesBuilder<___State>where
___State: Freeze,
impl<___State> RefUnwindSafe for ServiceTaskSpecResourcesBuilder<___State>where
___State: RefUnwindSafe,
impl<___State> Send for ServiceTaskSpecResourcesBuilder<___State>where
___State: Send,
impl<___State> Sync for ServiceTaskSpecResourcesBuilder<___State>where
___State: Sync,
impl<___State> Unpin for ServiceTaskSpecResourcesBuilder<___State>where
___State: Unpin,
impl<___State> UnwindSafe for ServiceTaskSpecResourcesBuilder<___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