pub struct ServiceTaskSpecResourcesReservationGenericResourcesBuilder<___State = __ServiceTaskSpecResourcesReservationGenericResourcesBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__DiscreteResourcesSpecs, __NamedResourcesSpecs> ServiceTaskSpecResourcesReservationGenericResourcesBuilder<(__DiscreteResourcesSpecs, __NamedResourcesSpecs)>
impl<__DiscreteResourcesSpecs, __NamedResourcesSpecs> ServiceTaskSpecResourcesReservationGenericResourcesBuilder<(__DiscreteResourcesSpecs, __NamedResourcesSpecs)>
sourcepub fn build_struct(self) -> ServiceTaskSpecResourcesReservationGenericResourceswhere
__DiscreteResourcesSpecs: IntoSet<Option<Box<Option<Vec<String>>>>, ServiceTaskSpecResourcesReservationGenericResourcesBuilder__discrete_resources_specs>,
__NamedResourcesSpecs: IntoSet<Option<Box<Option<Vec<String>>>>, ServiceTaskSpecResourcesReservationGenericResourcesBuilder__named_resources_specs>,
pub fn build_struct(self) -> ServiceTaskSpecResourcesReservationGenericResourceswhere
__DiscreteResourcesSpecs: IntoSet<Option<Box<Option<Vec<String>>>>, ServiceTaskSpecResourcesReservationGenericResourcesBuilder__discrete_resources_specs>,
__NamedResourcesSpecs: IntoSet<Option<Box<Option<Vec<String>>>>, ServiceTaskSpecResourcesReservationGenericResourcesBuilder__named_resources_specs>,
Finishes building and returns the requested object.
sourcepub fn maybe_discrete_resources_specs(
self,
value: Option<impl Into<Box<Option<Vec<String>>>>>,
) -> <Self as __ServiceTaskSpecResourcesReservationGenericResourcesBuilderSetMember>::DiscreteResourcesSpecswhere
__DiscreteResourcesSpecs: IsUnset,
pub fn maybe_discrete_resources_specs(
self,
value: Option<impl Into<Box<Option<Vec<String>>>>>,
) -> <Self as __ServiceTaskSpecResourcesReservationGenericResourcesBuilderSetMember>::DiscreteResourcesSpecswhere
__DiscreteResourcesSpecs: IsUnset,
Same as [Self::r#discrete_resources_specs
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn discrete_resources_specs(
self,
value: impl Into<Box<Option<Vec<String>>>>,
) -> <Self as __ServiceTaskSpecResourcesReservationGenericResourcesBuilderSetMember>::DiscreteResourcesSpecswhere
__DiscreteResourcesSpecs: IsUnset,
pub fn discrete_resources_specs(
self,
value: impl Into<Box<Option<Vec<String>>>>,
) -> <Self as __ServiceTaskSpecResourcesReservationGenericResourcesBuilderSetMember>::DiscreteResourcesSpecswhere
__DiscreteResourcesSpecs: IsUnset,
The Integer resources
sourcepub fn maybe_named_resources_specs(
self,
value: Option<impl Into<Box<Option<Vec<String>>>>>,
) -> <Self as __ServiceTaskSpecResourcesReservationGenericResourcesBuilderSetMember>::NamedResourcesSpecswhere
__NamedResourcesSpecs: IsUnset,
pub fn maybe_named_resources_specs(
self,
value: Option<impl Into<Box<Option<Vec<String>>>>>,
) -> <Self as __ServiceTaskSpecResourcesReservationGenericResourcesBuilderSetMember>::NamedResourcesSpecswhere
__NamedResourcesSpecs: IsUnset,
Same as [Self::r#named_resources_specs
], but accepts an Option
as input. See that method’s documentation for more details.
Auto Trait Implementations§
impl<___State> Freeze for ServiceTaskSpecResourcesReservationGenericResourcesBuilder<___State>where
___State: Freeze,
impl<___State> RefUnwindSafe for ServiceTaskSpecResourcesReservationGenericResourcesBuilder<___State>where
___State: RefUnwindSafe,
impl<___State> Send for ServiceTaskSpecResourcesReservationGenericResourcesBuilder<___State>where
___State: Send,
impl<___State> Sync for ServiceTaskSpecResourcesReservationGenericResourcesBuilder<___State>where
___State: Sync,
impl<___State> Unpin for ServiceTaskSpecResourcesReservationGenericResourcesBuilder<___State>where
___State: Unpin,
impl<___State> UnwindSafe for ServiceTaskSpecResourcesReservationGenericResourcesBuilder<___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