Struct docker_api_stubs::models::ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
source · [−]pub struct ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem {
pub max_concurrent: Option<i64>,
pub total_completions: Option<i64>,
}
Expand description
The mode used for services with a finite number of tasks that run to a completed state.
Fields
max_concurrent: Option<i64>
The maximum number of replicas to run simultaneously.
total_completions: Option<i64>
The total number of replicas desired to reach the Completed
state. If unset, will default to the value of MaxConcurrent
Trait Implementations
sourceimpl Clone for ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
impl Clone for ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
sourcefn clone(&self) -> ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
fn clone(&self) -> ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'de> Deserialize<'de> for ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
impl<'de> Deserialize<'de> for ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem> for ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
impl PartialEq<ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem> for ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
sourcefn eq(
&self,
other: &ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
) -> bool
fn eq(
&self,
other: &ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
) -> bool
impl StructuralPartialEq for ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
Auto Trait Implementations
impl RefUnwindSafe for ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
impl Send for ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
impl Sync for ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
impl Unpin for ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
impl UnwindSafe for ServiceCreateBodyParamModeInlineItemReplicatedJobInlineItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more