KeiSeiKit-1.0/_primitives/_rust/kei-projects-index/src/row.rs
Parfii-bot 0be354a920 KeiSeiKit-public — clean state
Single-commit clean baseline after security scrub of niche-tells,
project codenames, internal jargon, and contributor-email leaks.

Contents:
- 100 Rust crates (_primitives/_rust/)
- 37 agent manifests (_manifests/) + generated specs (_generated/)
- 67 user-invocable skills (skills/)
- 33 hooks (hooks/)
- Composition blocks (_blocks/)
- Documentation (docs/, README.md)
- TS adapter packages (_ts_packages/)
- Assembler (_assembler/)
- Roles (_roles/)
- Templates (_templates/)
- Forgejo CI (.forgejo/)

Author: Denis Parfionovich <info@greendragon.info>

License: see LICENSE.
2026-05-01 12:09:03 +08:00

29 lines
1,006 B
Rust

//! `ProjectRow` — value type mirroring one row of the `projects` table.
//!
//! Constructor Pattern: one cube = one struct + its serde derive. Kept
//! separate from `index.rs` so the orchestrator stays under the 120-LOC
//! cap and the schema's row shape lives in a single, easily-diffable cube.
use serde::{Deserialize, Serialize};
/// One row of the `projects` table. Mirrors the SQL schema verbatim.
/// Consumed by `kei-cortex` (dashboard JSON) and integration tests.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ProjectRow {
pub path: String,
pub name: String,
pub has_git: bool,
pub branch: Option<String>,
pub dirty: bool,
pub ahead: i64,
pub behind: i64,
pub last_commit_sha: Option<String>,
pub last_commit_msg: Option<String>,
pub last_commit_ts: Option<i64>,
pub has_claude_md: bool,
pub has_decisions_md: bool,
pub has_runbook_md: bool,
pub has_readme: bool,
pub sqlite_count: i64,
pub last_indexed_ts: i64,
}