pub struct DeploymentState {
pub current_release: Option<ReleaseInfo>,
pub environment_info: Option<EnvironmentInfo>,
pub platform: Platform,
pub retry_requested: Option<bool>,
pub runtime_metadata: Option<RuntimeMetadata>,
pub stack_state: Option<StackState>,
pub status: DeploymentStatus,
pub target_release: Option<ReleaseInfo>,
}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.
JSON schema
{
"description": "Deployment state\n\nRepresents the current state of deployed infrastructure, including release tracking.\nThis is platform-agnostic - no backend IDs or database relationships.\n\nThe deployment engine manages releases internally: when a deployment succeeds,\nit promotes `target_release` to `current_release` and clears `target_release`.",
"type": "object",
"required": [
"platform",
"status"
],
"properties": {
"currentRelease": {
"description": "Currently deployed release (None for first deployment)",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/ReleaseInfo"
}
]
}
]
},
"environmentInfo": {
"description": "Cloud account details (account ID, project number, region)",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/EnvironmentInfo"
}
]
}
]
},
"platform": {
"description": "Target cloud platform (AWS, GCP, Azure, Kubernetes)",
"allOf": [
{
"$ref": "#/components/schemas/Platform"
}
]
},
"retryRequested": {
"description": "Whether a retry has been requested for a failed deployment\nWhen true and status is a failed state, the deployment system will retry failed resources",
"type": "boolean"
},
"runtimeMetadata": {
"description": "Deployment-specific data (prepared stacks, phase tracking, etc.)",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/RuntimeMetadata"
}
]
}
]
},
"stackState": {
"description": "Infrastructure resource tracking (which resources exist, their status, outputs)",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/StackState"
}
]
}
]
},
"status": {
"description": "Current lifecycle phase",
"allOf": [
{
"$ref": "#/components/schemas/DeploymentStatus"
}
]
},
"targetRelease": {
"description": "Target release to deploy (None when synced with current)",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/ReleaseInfo"
}
]
}
]
}
}
}Fields§
§current_release: Option<ReleaseInfo>Currently deployed release (None for first deployment)
environment_info: Option<EnvironmentInfo>Cloud account details (account ID, project number, region)
platform: PlatformTarget cloud platform (AWS, GCP, Azure, Kubernetes)
retry_requested: Option<bool>Whether a retry has been requested for a failed deployment When true and status is a failed state, the deployment system will retry failed resources
runtime_metadata: Option<RuntimeMetadata>Deployment-specific data (prepared stacks, phase tracking, etc.)
stack_state: Option<StackState>Infrastructure resource tracking (which resources exist, their status, outputs)
status: DeploymentStatusCurrent lifecycle phase
target_release: Option<ReleaseInfo>Target release to deploy (None when synced with current)
Implementations§
Source§impl DeploymentState
impl DeploymentState
pub fn builder() -> DeploymentState
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