use chrono::{DateTime, Utc}; use serde::{Serialize, Deserialize}; use uuid::Uuid; use super::credential::CredentialType; #[derive(Serialize, Deserialize, Debug, Default, Clone, PartialEq, Eq, PartialOrd, Ord)] pub struct Agent { pub id: Uuid, #[serde(rename = "fullName")] pub full_name: String, pub credential: String, #[serde(rename = "credentialType")] pub credential_type: CredentialType, #[serde(rename = "timeCreated")] pub time_created: DateTime, #[serde(rename = "lastUpdated")] pub last_updated: DateTime, }