muse-code-sdk 1.4.23

Async Rust client for Muse Code over MSP
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// @generated from the MSP stable schema and protocol sources; do not edit by hand.

use serde::Deserialize;
use serde::Serialize;

/// What happens to the `previousSessionId` predecessor's unfinished
/// background work. **Closed**: the client selects one of the two policies
/// the host applies.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub enum SwitchPolicy {
    /// Leave the predecessor's background work running; only its
    /// persistent monitors end.
    Keep,
    /// Cancel the predecessor's unfinished background work, as the TUI's
    /// `/new` and `/clear` do.
    Kill,
}