#[non_exhaustive]pub enum DeployFieldKind {
EndpointMode,
Labels,
Mode,
Placement,
Replicas,
Resources,
RestartPolicy,
RollbackConfig,
UpdateConfig,
}Expand description
Recognized fields from the current Compose Deploy Specification.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EndpointMode
Service-discovery endpoint mode.
Labels
Platform-service labels.
Mode
Replication or job mode.
Placement
Node-placement rules.
Replicas
Desired replica count.
Resources
Resource limits and reservations.
RestartPolicy
Deploy-level restart policy.
RollbackConfig
Rollback behavior.
UpdateConfig
Rolling-update behavior.
Trait Implementations§
Source§impl Clone for DeployFieldKind
impl Clone for DeployFieldKind
Source§fn clone(&self) -> DeployFieldKind
fn clone(&self) -> DeployFieldKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeployFieldKind
Source§impl Debug for DeployFieldKind
impl Debug for DeployFieldKind
impl Eq for DeployFieldKind
Source§impl Hash for DeployFieldKind
impl Hash for DeployFieldKind
Source§impl PartialEq for DeployFieldKind
impl PartialEq for DeployFieldKind
impl StructuralPartialEq for DeployFieldKind
Auto Trait Implementations§
impl Freeze for DeployFieldKind
impl RefUnwindSafe for DeployFieldKind
impl Send for DeployFieldKind
impl Sync for DeployFieldKind
impl Unpin for DeployFieldKind
impl UnsafeUnpin for DeployFieldKind
impl UnwindSafe for DeployFieldKind
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