Skip to main content

objectiveai_sdk/cli/output/notification/functions/profiles/
pairs.rs

1use schemars::JsonSchema;
2use serde::{Deserialize, Serialize};
3
4/// Result of `functions profiles pairs get`. The CLI fetches both
5/// halves of the pair and emits them together.
6///
7/// Wire: `{"type":"notification","pair":{"function":...,"profile":...}}`.
8#[derive(Serialize, Deserialize, Debug, Clone, JsonSchema)]
9#[schemars(rename = "cli.output.notification.functions.profiles.Pair")]
10pub struct Pair {
11    pub pair: FunctionProfilePair,
12}
13
14/// The composite body inside a `Pair` notification.
15#[derive(Serialize, Deserialize, Debug, Clone, JsonSchema)]
16#[schemars(rename = "cli.output.notification.functions.profiles.FunctionProfilePair")]
17pub struct FunctionProfilePair {
18    pub function: crate::functions::response::GetFunctionResponse,
19    pub profile: crate::functions::profiles::response::GetProfileResponse,
20}