Skip to main content

muse_code_sdk/msp/method/lifecycle/session_resume/
attachments.rs

1// @generated from the MSP stable schema and protocol sources; do not edit by hand.
2
3use crate::msp::view::StreamRef;
4use serde::Deserialize;
5use serde::Serialize;
6
7/// One `restartReceipts` entry on `session/resume`: a copy of the runtime
8/// `ManualCompactionReceipt` in its own serde vocabulary — display event ids,
9/// `StreamRef` streams, and the runtime's snake-case status/reason/outcome
10/// words.
11#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
12#[serde(rename_all = "camelCase")]
13#[non_exhaustive]
14pub struct RestartReceipt {
15    /// The compaction command's event id, display form.
16    pub command_id: String,
17    /// The session stream the command was accepted on.
18    pub session_stream: StreamRef,
19    /// The compaction target run; absent on target-less receipts.
20    #[serde(default, skip_serializing_if = "Option::is_none")]
21    pub target_stream: Option<StreamRef>,
22    /// The runtime status word (e.g. `failed_before_start`).
23    pub status: String,
24    /// The runtime reason word, when the receipt carries one.
25    #[serde(default, skip_serializing_if = "Option::is_none")]
26    pub reason: Option<String>,
27    /// The summary candidate id, when the receipt carries one.
28    #[serde(default, skip_serializing_if = "Option::is_none")]
29    pub candidate_id: Option<String>,
30    /// The runtime terminal-outcome word (e.g. `failed`).
31    pub terminal_outcome: String,
32}