pub struct WorkloadStatus {
pub id: String,
pub name: String,
pub image: String,
pub state: WorkloadState,
pub running: bool,
pub healthy: bool,
pub ready: bool,
pub started_at: Option<DateTime<Utc>>,
pub stopped_at: Option<DateTime<Utc>>,
pub exit_code: Option<i32>,
pub message: String,
pub restarts: u32,
}Expand description
Detailed status of a single workload.
Fields§
§id: StringProvider-assigned identifier.
name: StringHuman-readable name.
image: StringImage reference.
state: WorkloadStateLifecycle state.
running: boolWhether the workload is currently running.
healthy: boolWhether provider health checks pass.
ready: boolWhether all readiness checks pass (Kubernetes).
started_at: Option<DateTime<Utc>>When the workload started, if known.
stopped_at: Option<DateTime<Utc>>When the workload stopped, if known.
exit_code: Option<i32>Process exit code, if the workload has exited.
message: StringHuman-readable status message.
restarts: u32Restart count (Kubernetes).
Trait Implementations§
Source§impl Clone for WorkloadStatus
impl Clone for WorkloadStatus
Source§fn clone(&self) -> WorkloadStatus
fn clone(&self) -> WorkloadStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkloadStatus
impl Debug for WorkloadStatus
Source§impl Default for WorkloadStatus
impl Default for WorkloadStatus
Source§fn default() -> WorkloadStatus
fn default() -> WorkloadStatus
Returns the “default value” for a type. Read more
impl Eq for WorkloadStatus
Source§impl PartialEq for WorkloadStatus
impl PartialEq for WorkloadStatus
impl StructuralPartialEq for WorkloadStatus
Auto Trait Implementations§
impl Freeze for WorkloadStatus
impl RefUnwindSafe for WorkloadStatus
impl Send for WorkloadStatus
impl Sync for WorkloadStatus
impl Unpin for WorkloadStatus
impl UnsafeUnpin for WorkloadStatus
impl UnwindSafe for WorkloadStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more