pub struct Data<'a> { /* private fields */ }Expand description
/v1/data + /v1/workflows/:id/data* — the extracted-data surface.
Shapes are query-engine-driven, so responses stay loosely typed.
Implementations§
Source§impl Data<'_>
impl Data<'_>
Sourcepub async fn query(&self, query: &[(&str, &str)]) -> Result<Value>
pub async fn query(&self, query: &[(&str, &str)]) -> Result<Value>
GET /v1/data — workflows that have extracted data.
Sourcepub async fn workflow_data(
&self,
workflow_id: i64,
query: &[(&str, &str)],
) -> Result<Value>
pub async fn workflow_data( &self, workflow_id: i64, query: &[(&str, &str)], ) -> Result<Value>
GET /v1/workflows/:id/data — the aggregated data table (filters,
limit/offset, sort — pass query params through as given).
Sourcepub async fn delete_workflow_data(&self, workflow_id: i64) -> Result<Value>
pub async fn delete_workflow_data(&self, workflow_id: i64) -> Result<Value>
DELETE /v1/workflows/:id/data — drop the workflow’s extracted data.
Sourcepub async fn facets(&self, workflow_id: i64) -> Result<Value>
pub async fn facets(&self, workflow_id: i64) -> Result<Value>
GET /v1/workflows/:id/data/facets — per-column facet values.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Data<'a>
impl<'a> !UnwindSafe for Data<'a>
impl<'a> Freeze for Data<'a>
impl<'a> Send for Data<'a>
impl<'a> Sync for Data<'a>
impl<'a> Unpin for Data<'a>
impl<'a> UnsafeUnpin for Data<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more