objectiveai_sdk/cli/output/notification/
items.rs1use schemars::JsonSchema;
2use serde::{Deserialize, Serialize};
3
4#[derive(Serialize, Deserialize, Debug, Clone, JsonSchema)]
11#[schemars(rename = "cli.output.notification.Items.{T}")]
12pub struct Items<T> {
13 pub items: Vec<T>,
14}
15
16#[derive(Serialize, Deserialize, Debug, Clone, JsonSchema)]
20#[serde(untagged)]
21#[schemars(rename = "cli.output.notification.ListItem")]
22pub enum ListItem {
23 #[schemars(title = "Favorite")]
24 Favorite(crate::filesystem::config::Favorite),
25 #[schemars(title = "Item")]
26 Item(crate::RemotePath),
27}
28
29#[derive(Serialize, Deserialize, Debug, Clone, JsonSchema)]
31#[serde(untagged)]
32#[schemars(rename = "cli.output.notification.PairListItem")]
33pub enum PairListItem {
34 #[schemars(title = "Favorite")]
35 Favorite(crate::filesystem::config::PairFavorite),
36 #[schemars(title = "Item")]
37 Item(crate::functions::response::ListFunctionProfilePairItem),
38}