objectiveai-sdk 2.0.7

ObjectiveAI SDK, definitions, and utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

/// Generic wire wrapper used by every typed config getter:
/// `{"type":"notification","value":<T>}`. The element type varies
/// per config family (e.g. `Value<ApiMode>`, `Value<Option<String>>`,
/// `Value<ApiHeadersConfig>`).
#[derive(Serialize, Deserialize, Debug, Clone, JsonSchema)]
#[schemars(rename = "cli.output.notification.Value.{T}")]
pub struct Value<T> {
    pub value: T,
}