righvalor 0.1.0

RighValor: AI Infrastructure and Applications Framework for the Far Edge
use serde::{Deserialize, Serialize};

/// Enumeration of possible reasons why a Valor Master might reject a worker registration.
///
/// Used in northbound communication to inform workers of registration failures
/// and provide actionable feedback for resolution.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum ValorMasterRejectedReason {
    /// Worker registration failed due to authentication failure
    AuthenticationFailed,
    /// Worker registration failed due to resource constraints
    ResourceConstraints,
    /// Worker registration failed due to other reasons
    Other(String),
}

/// Represents service management operations that the Valor Master can send to workers.
///
/// Service management commands control the lifecycle of services on worker nodes,
/// including installation, updates, configuration changes, and removal.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum ValorMasterServiceManagement {}