pub struct FlowBuilder { /* private fields */ }Implementations§
Source§impl FlowBuilder
impl FlowBuilder
pub async fn new(name: &str) -> Result<Self>
pub fn root_scope(&self) -> OpScopeRef
pub async fn add_source( &mut self, kind: String, op_spec: Map<String, Value>, target_scope: Option<OpScopeRef>, name: String, refresh_options: Option<SourceRefreshOptions>, execution_options: Option<ExecutionOptions>, ) -> Result<DataSlice>
pub fn constant( &self, value_type: EnrichedValueType, value: Value, ) -> Result<DataSlice>
pub fn add_direct_input( &mut self, name: String, value_type: EnrichedValueType, ) -> Result<DataSlice>
pub fn set_direct_output(&mut self, data_slice: DataSlice) -> Result<()>
pub fn for_each( &mut self, data_slice: DataSlice, execution_options: Option<ExecutionOptions>, ) -> Result<OpScopeRef>
pub async fn transform( &mut self, kind: String, op_spec: Map<String, Value>, args: Vec<(DataSlice, Option<String>)>, target_scope: Option<OpScopeRef>, name: String, ) -> Result<DataSlice>
pub async fn collect( &mut self, collector: &DataCollector, fields: Vec<(FieldName, DataSlice)>, auto_uuid_field: Option<FieldName>, ) -> Result<()>
pub fn export( &mut self, name: String, kind: String, op_spec: Map<String, Value>, attachments: Vec<OpSpec>, index_options: IndexOptions, input: &DataCollector, setup_by_user: bool, ) -> Result<()>
pub fn declare(&mut self, op_spec: OpSpec) -> Result<()>
pub fn scope_field( &self, scope: OpScopeRef, field_name: &str, ) -> Result<Option<DataSlice>>
pub async fn build_flow(&self) -> Result<Flow>
pub async fn build_transient_flow(&self) -> Result<TransientFlow>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlowBuilder
impl !RefUnwindSafe for FlowBuilder
impl Send for FlowBuilder
impl Sync for FlowBuilder
impl Unpin for FlowBuilder
impl !UnwindSafe for FlowBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.