pub struct Runs<'a> { /* private fields */ }Expand description
/v1/runs — read + control. Ids are the numeric row id
(RunFeedItem::row_id parses it out of the composite feed id).
Implementations§
Source§impl Runs<'_>
impl Runs<'_>
Sourcepub async fn list(&self) -> Result<Page<RunFeedItem>>
pub async fn list(&self) -> Result<Page<RunFeedItem>>
GET /v1/runs.
Sourcepub async fn list_with(
&self,
query: &[(&str, &str)],
) -> Result<Page<RunFeedItem>>
pub async fn list_with( &self, query: &[(&str, &str)], ) -> Result<Page<RunFeedItem>>
GET /v1/runs with filters (entity_id, workflow_id, run_type,
status, limit, offset).
Sourcepub async fn get(&self, run_id: i64) -> Result<RunFeedItem>
pub async fn get(&self, run_id: i64) -> Result<RunFeedItem>
GET /v1/runs/:id.
Sourcepub async fn results(&self, run_id: i64) -> Result<RunResults>
pub async fn results(&self, run_id: i64) -> Result<RunResults>
GET /v1/runs/:id/results → {run_id, status, result}.
Sourcepub async fn data(&self, run_id: i64) -> Result<RunData>
pub async fn data(&self, run_id: i64) -> Result<RunData>
GET /v1/runs/:id/data — the run’s extracted rows (JSON lane).
Sourcepub async fn data_csv(&self, run_id: i64) -> Result<String>
pub async fn data_csv(&self, run_id: i64) -> Result<String>
GET /v1/runs/:id/data?format=csv — the extracted rows flattened to CSV.
Sourcepub async fn cancel(&self, run_id: i64) -> Result<CancelOutcome>
pub async fn cancel(&self, run_id: i64) -> Result<CancelOutcome>
POST /v1/runs/:id/cancel. Both 202 cancel_requested and
409 not_running are valid CancelOutcomes (the 409 is not an Err).
Sourcepub async fn events(&self, run_id: i64) -> Result<RunEventStream>
pub async fn events(&self, run_id: i64) -> Result<RunEventStream>
GET /v1/runs/:id/events — live SSE stream of RunEvents. The stream
ends after the terminal finished/error frame (a run that is already
finished yields exactly one terminal frame). Keep-alive comments are
consumed by the parser. No reconnect logic in v1 — a dropped stream
surfaces as an Err item.