pub struct DeploymentView {
pub application_id: Option<String>,
pub build_id: Option<String>,
pub commit: Option<String>,
pub created_at: Option<i32>,
pub id: Option<String>,
pub image: Option<String>,
pub message: Option<String>,
pub org: Option<String>,
pub source: Option<String>,
pub status: Option<String>,
pub updated_at: Option<i32>,
pub version: Option<i32>,
}Fields§
§application_id: Option<String>ApplicationID is the app this deployed — the app’s id, not its slug.
build_id: Option<String>BuildID is the build record behind a git deploy, whose logs and status live at /v1/platform/builds. Empty for an image deploy.
commit: Option<String>Commit is the git ref this built — the commit a deploy or a push named, else the app’s branch. Empty for an image deploy, which builds nothing.
created_at: Option<i32>CreatedAt is when the attempt was recorded, unix seconds.
id: Option<String>ID is the deployment’s id (dep_…), minted when the attempt is recorded. The app’s currentDeploymentId points at one of these.
image: Option<String>Image is the full repo:tag this deployment put in the CR. For a git deploy it is the ref the in-cluster build pushes to, known before the build runs.
message: Option<String>Message is why this attempt is not live: the failure, or the note that a newer deployment went live before this build finished. Empty while it is fine.
org: Option<String>Org is the tenant the deployment belongs to, from the validated identity.
source: Option<String>Source is which lane produced it: git (built from the repo) or image (an already-built ref deployed as-is, including promote and rollback).
status: Option<String>Status is where the attempt got to: building while its image is being built, deploying once its CR reached the cluster — which is the terminal success state, the app’s own status is what turns live — error with the reason in Message, or superseded when a newer version went live first.
updated_at: Option<i32>UpdatedAt is its last transition, unix seconds — so for a terminal deployment it is when it reached that state.
version: Option<i32>Version counts this app’s deployments, from 1 and monotonically. It is what ORDERS them: a deploy only goes live if no higher version already is, so a build that finishes late is superseded instead of overwriting a newer one.
Implementations§
Source§impl DeploymentView
impl DeploymentView
pub fn new() -> DeploymentView
Trait Implementations§
Source§impl Clone for DeploymentView
impl Clone for DeploymentView
Source§fn clone(&self) -> DeploymentView
fn clone(&self) -> DeploymentView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more