Enum aws_sdk_proton::types::DeploymentState
source · #[non_exhaustive]pub enum DeploymentState {
Component(ComponentState),
Environment(EnvironmentState),
ServiceInstance(ServiceInstanceState),
ServicePipeline(ServicePipelineState),
Unknown,
}
Expand description
The detailed data about the current state of the deployment.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Component(ComponentState)
The state of the component associated with the deployment.
Environment(EnvironmentState)
The state of the environment associated with the deployment.
ServiceInstance(ServiceInstanceState)
The state of the service instance associated with the deployment.
ServicePipeline(ServicePipelineState)
The state of the service pipeline associated with the deployment.
Unknown
The Unknown
variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown
variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
source§impl DeploymentState
impl DeploymentState
sourcepub fn as_component(&self) -> Result<&ComponentState, &Self>
pub fn as_component(&self) -> Result<&ComponentState, &Self>
Tries to convert the enum instance into Component
, extracting the inner ComponentState
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_component(&self) -> bool
pub fn is_component(&self) -> bool
Returns true if this is a Component
.
sourcepub fn as_environment(&self) -> Result<&EnvironmentState, &Self>
pub fn as_environment(&self) -> Result<&EnvironmentState, &Self>
Tries to convert the enum instance into Environment
, extracting the inner EnvironmentState
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_environment(&self) -> bool
pub fn is_environment(&self) -> bool
Returns true if this is a Environment
.
sourcepub fn as_service_instance(&self) -> Result<&ServiceInstanceState, &Self>
pub fn as_service_instance(&self) -> Result<&ServiceInstanceState, &Self>
Tries to convert the enum instance into ServiceInstance
, extracting the inner ServiceInstanceState
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_service_instance(&self) -> bool
pub fn is_service_instance(&self) -> bool
Returns true if this is a ServiceInstance
.
sourcepub fn as_service_pipeline(&self) -> Result<&ServicePipelineState, &Self>
pub fn as_service_pipeline(&self) -> Result<&ServicePipelineState, &Self>
Tries to convert the enum instance into ServicePipeline
, extracting the inner ServicePipelineState
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_service_pipeline(&self) -> bool
pub fn is_service_pipeline(&self) -> bool
Returns true if this is a ServicePipeline
.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown
variant.
Trait Implementations§
source§impl Clone for DeploymentState
impl Clone for DeploymentState
source§fn clone(&self) -> DeploymentState
fn clone(&self) -> DeploymentState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeploymentState
impl Debug for DeploymentState
source§impl PartialEq for DeploymentState
impl PartialEq for DeploymentState
source§fn eq(&self, other: &DeploymentState) -> bool
fn eq(&self, other: &DeploymentState) -> bool
self
and other
values to be equal, and is used
by ==
.