pub struct DeployDefinition { /* private fields */ }Expand description
A deploy definition split into independently classifiable fields.
Implementations§
Source§impl DeployDefinition
impl DeployDefinition
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete deploy mapping span.
Sourcepub const fn endpoint_mode(&self) -> Option<&Located<DeployEndpointMode>>
pub const fn endpoint_mode(&self) -> Option<&Located<DeployEndpointMode>>
Returns the authored service-discovery endpoint mode.
Sourcepub fn labels(&self) -> Option<&Labels>
pub fn labels(&self) -> Option<&Labels>
Returns authored deployment labels without conflating them with service container labels.
Sourcepub const fn mode(&self) -> Option<&Located<DeployMode>>
pub const fn mode(&self) -> Option<&Located<DeployMode>>
Returns the authored deployment mode.
Sourcepub fn placement(&self) -> Option<&DeployPlacement>
pub fn placement(&self) -> Option<&DeployPlacement>
Returns authored deploy placement without scheduling interpretation.
Sourcepub const fn replicas(&self) -> Option<&Located<DeployReplicas>>
pub const fn replicas(&self) -> Option<&Located<DeployReplicas>>
Returns the authored replica-count spelling and YAML scalar category.
Sourcepub fn resources(&self) -> Option<&DeployResources>
pub fn resources(&self) -> Option<&DeployResources>
Returns authored deploy resources without resource-policy interpretation.
Sourcepub fn restart_policy(&self) -> Option<&DeployRestartPolicy>
pub fn restart_policy(&self) -> Option<&DeployRestartPolicy>
Returns the authored deploy restart policy without using service restart semantics.
Sourcepub fn rollback_config(&self) -> Option<&DeployRollbackConfig>
pub fn rollback_config(&self) -> Option<&DeployRollbackConfig>
Returns the authored rollback configuration without rollout interpretation.
Sourcepub fn update_config(&self) -> Option<&DeployUpdateConfig>
pub fn update_config(&self) -> Option<&DeployUpdateConfig>
Returns the authored rolling-update configuration without rollout interpretation.
Sourcepub fn fields(&self) -> &[DeployField]
pub fn fields(&self) -> &[DeployField]
Returns recognized deploy fields in authored order.
Sourcepub fn field(&self, kind: DeployFieldKind) -> Option<&DeployField>
pub fn field(&self, kind: DeployFieldKind) -> Option<&DeployField>
Finds the first recognized field of the requested kind.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns retained x- fields.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns fields not recognized by this release.
Trait Implementations§
Source§impl Clone for DeployDefinition
impl Clone for DeployDefinition
Source§fn clone(&self) -> DeployDefinition
fn clone(&self) -> DeployDefinition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more