planspec-server 0.1.0

Minimal PlanSpec API server - reference implementation
Documentation
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use serde_json::Value;

/// A stored resource object
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct StoredObject {
    /// Composite key: namespace/kind/name
    pub namespace: String,
    pub kind: String,
    pub name: String,

    /// The full resource JSON
    pub object: Value,

    /// Server-assigned unique ID
    pub uid: String,

    /// Optimistic concurrency token (increments on any change)
    pub resource_version: i64,

    /// Increments only on spec changes
    pub generation: i64,

    /// Timestamps
    pub created_at: DateTime<Utc>,
    pub updated_at: DateTime<Utc>,
}