Skip to main content

objectiveai_sdk/cli/output/notification/
value.rs

1use schemars::JsonSchema;
2use serde::{Deserialize, Serialize};
3
4/// Generic wire wrapper used by every typed config getter:
5/// `{"type":"notification","value":<T>}`. The element type varies
6/// per config family (e.g. `Value<ApiMode>`, `Value<Option<String>>`,
7/// `Value<ApiHeadersConfig>`).
8#[derive(Serialize, Deserialize, Debug, Clone, JsonSchema)]
9#[schemars(rename = "cli.output.notification.Value.{T}")]
10pub struct Value<T> {
11    pub value: T,
12}