pub trait RawGraphStore: Send + Sync {
// Required methods
async fn save_graph(
&self,
id: &str,
goal: &str,
status: &str,
graph_json: &str,
created_at: &str,
finished_at: Option<&str>,
) -> Result<(), DbError>;
async fn load_graph(&self, id: &str) -> Result<Option<String>, DbError>;
async fn list_graphs(
&self,
limit: u32,
) -> Result<Vec<GraphSummary>, DbError>;
async fn delete_graph(&self, id: &str) -> Result<bool, DbError>;
}Expand description
Raw persistence interface for task graphs.
All graph data is stored as an opaque JSON blob. The orchestration layer in
zeph-core / zeph-orchestration is responsible for serializing and
deserializing TaskGraph values.
Required Methods§
Sourceasync fn save_graph(
&self,
id: &str,
goal: &str,
status: &str,
graph_json: &str,
created_at: &str,
finished_at: Option<&str>,
) -> Result<(), DbError>
async fn save_graph( &self, id: &str, goal: &str, status: &str, graph_json: &str, created_at: &str, finished_at: Option<&str>, ) -> Result<(), DbError>
Sourceasync fn list_graphs(&self, limit: u32) -> Result<Vec<GraphSummary>, DbError>
async fn list_graphs(&self, limit: u32) -> Result<Vec<GraphSummary>, DbError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".