v0.5.3-pre.003
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user