pub trait UsageLedgerPort: Send + Sync {
// Required methods
fn begin_graph_run(&self, payload: &Value) -> Result<(), Error>;
fn record_graph_command(&self, payload: &Value) -> Result<(), Error>;
fn workflow_report(&self, payload: &Value) -> Result<Value, Error>;
}Expand description
The numeric run usage ledger.
Every projection this port carries is rebuilt from typed run, binding and command fields by the caller; input and output bodies never cross the seam.
Required Methods§
fn begin_graph_run(&self, payload: &Value) -> Result<(), Error>
fn record_graph_command(&self, payload: &Value) -> Result<(), Error>
fn workflow_report(&self, payload: &Value) -> Result<Value, Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".