v0.5.3-pre.003

This commit is contained in:
2026-08-12 11:00:59 +02:00
parent 8448ad1079
commit 400ced4832
313 changed files with 7773 additions and 2623 deletions

View File

@@ -1,5 +1,5 @@
// file: ks-store/src/contracts/health.rs
// version: 2
// version: 3
//! Backend-neutral health contracts for storage implementations.
@@ -22,16 +22,16 @@ pub struct StoreHealthSnapshot {
/// Stable backend code such as `postgres` or `sqlite`.
pub backend: std::string::String,
/// Current health status.
pub status: StoreHealthStatus,
pub status: crate::StoreHealthStatus,
/// Optional human-readable diagnostic message.
pub message: std::option::Option<std::string::String>,
}
impl StoreHealthSnapshot {
impl crate::StoreHealthSnapshot {
/// Builds a store health snapshot after minimal validation.
pub fn new(
backend: impl std::convert::Into<std::string::String>,
status: StoreHealthStatus,
status: crate::StoreHealthStatus,
message: std::option::Option<std::string::String>,
) -> ks_core::Result<Self> {
let backend_value = backend.into();