pub trait Source {
// Required methods
fn table_schema(&self) -> &Table;
fn connect(
&self,
sort: Option<Vec<OrderPart>>,
filters: Option<&Condition>,
split_edit_keys: Option<&HashSet<String>>,
) -> Result<Rc<dyn SourceInput>, PipelineError>;
fn push(&self, change: SourceChange);
}Expand description
A source of rows for pipelines (Source in source.ts).
Required Methods§
fn table_schema(&self) -> &Table
Sourcefn connect(
&self,
sort: Option<Vec<OrderPart>>,
filters: Option<&Condition>,
split_edit_keys: Option<&HashSet<String>>,
) -> Result<Rc<dyn SourceInput>, PipelineError>
fn connect( &self, sort: Option<Vec<OrderPart>>, filters: Option<&Condition>, split_edit_keys: Option<&HashSet<String>>, ) -> Result<Rc<dyn SourceInput>, PipelineError>
Connects a pipeline. sort is None for an unordered connection.
fn push(&self, change: SourceChange)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".