pub struct Executor {
pub filter_executor: FilterExecutor,
/* private fields */
}Expand description
Main executor for dsq operations
Fields§
§filter_executor: FilterExecutorImplementations§
Source§impl Executor
impl Executor
Sourcepub async fn execute_filter(
&mut self,
filter: &str,
input_path: Option<&Path>,
output_path: Option<&Path>,
) -> Result<()>
pub async fn execute_filter( &mut self, filter: &str, input_path: Option<&Path>, output_path: Option<&Path>, ) -> Result<()>
Execute a filter on input data
Sourcepub async fn execute_filter_on_value(
&mut self,
filter: &str,
input_value: Value,
output_path: Option<&Path>,
) -> Result<()>
pub async fn execute_filter_on_value( &mut self, filter: &str, input_value: Value, output_path: Option<&Path>, ) -> Result<()>
Execute a filter on a value directly
Sourcepub fn validate_filter(&self, filter: &str) -> Result<()>
pub fn validate_filter(&self, filter: &str) -> Result<()>
Validate that a filter is syntactically correct
Sourcepub fn explain_filter(&self, filter: &str) -> Result<String>
pub fn explain_filter(&self, filter: &str) -> Result<String>
Explain what a filter does
Sourcepub async fn read_input(&self, path: &Path) -> Result<Value>
pub async fn read_input(&self, path: &Path) -> Result<Value>
Read input from a file path
Sourcepub fn write_to_stdout(&self, value: &Value) -> Result<()>
pub fn write_to_stdout(&self, value: &Value) -> Result<()>
Write output to stdout
Auto Trait Implementations§
impl Freeze for Executor
impl !RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl !UnwindSafe for Executor
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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 more