muse_code_sdk/msp/view/item/object/subagent_members.rs
1// @generated from the MSP stable schema and protocol sources; do not edit by hand.
2
3use crate::msp::view::item_content::WorkspacePlacement;
4use serde::Deserialize;
5use serde::Serialize;
6
7/// `subagent` members, flattened beside the other optional members.
8#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
9#[serde(rename_all = "camelCase")]
10#[non_exhaustive]
11pub struct SubagentMembers {
12 /// `subagent`: the spawn's workspace placement — `shared` when the spawn
13 /// requested no worktree isolation, `isolated` when it did, the same read
14 /// gate-off uses. Served from the item's first emission; absent when the
15 /// host cannot read the spawn record. Clients treat an absent member and an
16 /// unknown value as unknown.
17 #[serde(skip_serializing_if = "Option::is_none")]
18 pub workspace_placement: Option<WorkspacePlacement>,
19}