pub struct WorkspaceLifecycle {
pub state: String,
pub ts: DateTime<Utc>,
}Expand description
The last known workspace lifecycle transition (ticket
workspace-idle-hibernate), folded from workspace.teardown events
carrying a state: "kept" (mode keep), "stopped" (hibernate),
"destroyed" (destroy), or "failed" (the provider call failed — the
workspace may still be live). state is free-form on purpose so a
future substrate-reported transition (e.g. an idle hibernate the
substrate owns) folds into the same field without a schema change.
ts is the transition event’s own timestamp — the workspace-hours
anchor for cost tooling.
Fields§
§state: String§ts: DateTime<Utc>Trait Implementations§
Source§impl Clone for WorkspaceLifecycle
impl Clone for WorkspaceLifecycle
Source§fn clone(&self) -> WorkspaceLifecycle
fn clone(&self) -> WorkspaceLifecycle
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 WorkspaceLifecycle
impl Debug for WorkspaceLifecycle
Source§impl Default for WorkspaceLifecycle
impl Default for WorkspaceLifecycle
Source§fn default() -> WorkspaceLifecycle
fn default() -> WorkspaceLifecycle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkspaceLifecyclewhere
WorkspaceLifecycle: Default,
impl<'de> Deserialize<'de> for WorkspaceLifecyclewhere
WorkspaceLifecycle: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WorkspaceLifecycle
Source§impl PartialEq for WorkspaceLifecycle
impl PartialEq for WorkspaceLifecycle
Source§impl Serialize for WorkspaceLifecycle
impl Serialize for WorkspaceLifecycle
impl StructuralPartialEq for WorkspaceLifecycle
Auto Trait Implementations§
impl Freeze for WorkspaceLifecycle
impl RefUnwindSafe for WorkspaceLifecycle
impl Send for WorkspaceLifecycle
impl Sync for WorkspaceLifecycle
impl Unpin for WorkspaceLifecycle
impl UnsafeUnpin for WorkspaceLifecycle
impl UnwindSafe for WorkspaceLifecycle
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