Struct txtai::workflow::Workflow[][src]

pub struct Workflow { /* fields omitted */ }

Workflow definition

Implementations

impl Workflow[src]

Workflow implementation

pub fn new(url: &str) -> Workflow[src]

Creates a Workflow instance.

Arguments

  • url - base url of txtai API

pub async fn workflow(&self, name: &str, elements: &Vec<&str>) -> TextsBatch[src]

Executes a named workflow using elements as input.

name workflow name elements list of elements to run through workflow

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.