omni_orchestrator/
api_models.rs

1//! API models for the OmniOrchestrator
2//! 
3//! These are the general API models used by the OmniOrchestrator
4//! service outside the primary platform routes located in
5//! /scr/schema/VERSION/api
6
7use serde::{Deserialize, Serialize};
8use crate::cluster::NodeInfo;
9
10#[derive(Debug, Serialize, Deserialize)]
11pub struct ClusterStatusMessage {
12    pub node_roles: String,
13    pub cluster_nodes: Vec<NodeInfo>,
14}
15
16#[derive(Serialize, Deserialize)]
17pub struct ApiResponse {
18    pub status: String,
19    pub message: ClusterStatusMessage,
20}