pub struct TaskConsoleWireSnapshot {
pub schema_version: String,
pub generated_at: Time,
pub summary: TaskSummaryWire,
pub tasks: Vec<TaskDetailsWire>,
}Expand description
Deterministic wire payload for task-inspector snapshots.
Fields§
§schema_version: StringSchema version identifier.
generated_at: TimeLogical timestamp of snapshot capture.
summary: TaskSummaryWireAggregate task-state counters.
tasks: Vec<TaskDetailsWire>Task-level records sorted by TaskId.
Implementations§
Source§impl TaskConsoleWireSnapshot
impl TaskConsoleWireSnapshot
Sourcepub fn new(
generated_at: Time,
summary: TaskSummaryWire,
tasks: Vec<TaskDetailsWire>,
) -> Self
pub fn new( generated_at: Time, summary: TaskSummaryWire, tasks: Vec<TaskDetailsWire>, ) -> Self
Build a wire snapshot with deterministic task ordering.
Sourcepub fn has_expected_schema(&self) -> bool
pub fn has_expected_schema(&self) -> bool
Returns true when the payload schema matches the expected version.
Sourcepub fn to_pretty_json(&self) -> Result<String, Error>
pub fn to_pretty_json(&self) -> Result<String, Error>
Trait Implementations§
Source§impl Clone for TaskConsoleWireSnapshot
impl Clone for TaskConsoleWireSnapshot
Source§fn clone(&self) -> TaskConsoleWireSnapshot
fn clone(&self) -> TaskConsoleWireSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 TaskConsoleWireSnapshot
impl Debug for TaskConsoleWireSnapshot
Source§impl<'de> Deserialize<'de> for TaskConsoleWireSnapshot
impl<'de> Deserialize<'de> for TaskConsoleWireSnapshot
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
Source§impl PartialEq for TaskConsoleWireSnapshot
impl PartialEq for TaskConsoleWireSnapshot
Source§impl Serialize for TaskConsoleWireSnapshot
impl Serialize for TaskConsoleWireSnapshot
impl Eq for TaskConsoleWireSnapshot
impl StructuralPartialEq for TaskConsoleWireSnapshot
Auto Trait Implementations§
impl Freeze for TaskConsoleWireSnapshot
impl RefUnwindSafe for TaskConsoleWireSnapshot
impl Send for TaskConsoleWireSnapshot
impl Sync for TaskConsoleWireSnapshot
impl Unpin for TaskConsoleWireSnapshot
impl UnsafeUnpin for TaskConsoleWireSnapshot
impl UnwindSafe for TaskConsoleWireSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).