1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use serde::{Deserialize, Serialize};
use uuid::Uuid;

#[derive(Debug, PartialEq, Deserialize, Serialize, Clone)]
pub struct AgentInfo {
    pub host_uuid: Uuid,
    pub uuid: Uuid,
    pub name: String,
    pub status: AgentStatus,
}

#[derive(Debug, PartialEq, Deserialize, Serialize, Clone)]
pub enum AgentStatus {
    Undefined,
    Initializing,
    AwaitingJoin,
    Running,
    Orphaned,
    Exiting,
}