pub struct DeploymentState {
pub status: DeploymentStatus,
pub platform: Platform,
pub current_release: Option<ReleaseInfo>,
pub target_release: Option<ReleaseInfo>,
pub stack_state: Option<StackState>,
pub environment_info: Option<EnvironmentInfo>,
pub runtime_metadata: Option<RuntimeMetadata>,
pub retry_requested: bool,
}Expand description
Deployment state
Represents the current state of deployed infrastructure, including release tracking. This is platform-agnostic - no backend IDs or database relationships.
The deployment engine manages releases internally: when a deployment succeeds,
it promotes target_release to current_release and clears target_release.
Fields§
§status: DeploymentStatusCurrent lifecycle phase
platform: PlatformTarget cloud platform (AWS, GCP, Azure, Kubernetes)
current_release: Option<ReleaseInfo>Currently deployed release (None for first deployment)
target_release: Option<ReleaseInfo>Target release to deploy (None when synced with current)
stack_state: Option<StackState>Infrastructure resource tracking (which resources exist, their status, outputs)
environment_info: Option<EnvironmentInfo>Cloud account details (account ID, project number, region)
runtime_metadata: Option<RuntimeMetadata>Deployment-specific data (prepared stacks, phase tracking, etc.)
retry_requested: boolWhether a retry has been requested for a failed deployment When true and status is a failed state, the deployment system will retry failed resources
Implementations§
Source§impl DeploymentState
impl DeploymentState
Sourcepub fn builder() -> DeploymentStateBuilder
pub fn builder() -> DeploymentStateBuilder
Create an instance of DeploymentState using the builder syntax
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 more