Skip to main content

objectiveai_sdk/cli/output/notification/api/
detach.rs

1use schemars::JsonSchema;
2use serde::{Deserialize, Serialize};
3
4/// Emitted by the parent process during `--detach` once the child has
5/// been spawned. Replaces the prior `println!("PID: {pid}")`.
6///
7/// Wire: `{"type":"notification","pid":12345}`.
8#[derive(Serialize, Deserialize, Debug, Clone, JsonSchema)]
9#[schemars(rename = "cli.output.notification.api.Detached")]
10pub struct Detached {
11    pub pid: u32,
12}