use async_trait::async_trait;
use crate::error::WorkflowResult;
use crate::instance::HistoryEntry;
#[async_trait]
pub trait HistoryRepository: Send + Sync + 'static {
async fn append(&self, entry: &HistoryEntry) -> WorkflowResult<()>;
async fn list_by_instance(&self, instance_id: &str) -> WorkflowResult<Vec<HistoryEntry>>;
}