Struct fluvio_connectors_common::opt::CommonSmartModuleOpt
source · [−]pub struct CommonSmartModuleOpt {
pub filter: Option<String>,
pub filter_map: Option<String>,
pub map: Option<String>,
pub array_map: Option<String>,
pub aggregate: Option<String>,
pub aggregate_initial_value: Option<String>,
pub smart_module: Option<String>,
pub smartmodule_parameters: Option<Vec<(String, String)>>,
}Fields
filter: Option<String>Path of filter smartmodule used as a pre-produce step if using source connector. If using sink connector this smartmodule will be used in consumer.
If the value is not a path to a file, it will be used to lookup a SmartModule by name
filter_map: Option<String>Path of filter_map smartmodule used as a pre-produce step if using source connector. If using sink connector this smartmodule will be used in consumer.
If the value is not a path to a file, it will be used to lookup a SmartModule by name
map: Option<String>Path of map smartmodule used as a pre-produce step if using source connector. If using sink connector this smartmodule will be used in consumer.
If the value is not a path to a file, it will be used to lookup a SmartModule by name
array_map: Option<String>Path of arraymap smartmodule used as a pre-produce step if using source connector. If using sink connector this smartmodule will be used in consumer.
If the value is not a path to a file, it will be used to lookup a SmartModule by name
aggregate: Option<String>Path of aggregate smartmodule used as a pre-produce step if using source connector. If using sink connector this smartmodule will be used in consumer.
If the value is not a path to a file, it will be used to lookup a SmartModule by name
aggregate_initial_value: Option<String>smart_module: Option<String>Path of smartmodule used as a pre-produce step if using source connector. If using sink connector this smartmodule will be used in consumer.
If the value is not a path to a file, it will be used to lookup a SmartModule by name
smartmodule_parameters: Option<Vec<(String, String)>>(Optional) Extra input parameters passed to the smartmodule module. They should be passed using key:value format.
It only accepts one key:value pair. In order to pass multiple pairs, call this option multiple times.
Example: –smartmodule-parameters key1:value –smartmodule-parameters key2:value
Trait Implementations
sourceimpl Clone for CommonSmartModuleOpt
impl Clone for CommonSmartModuleOpt
sourcefn clone(&self) -> CommonSmartModuleOpt
fn clone(&self) -> CommonSmartModuleOpt
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CommonSmartModuleOpt
impl Debug for CommonSmartModuleOpt
sourceimpl Default for CommonSmartModuleOpt
impl Default for CommonSmartModuleOpt
sourcefn default() -> CommonSmartModuleOpt
fn default() -> CommonSmartModuleOpt
Returns the “default value” for a type. Read more
sourceimpl JsonSchema for CommonSmartModuleOpt
impl JsonSchema for CommonSmartModuleOpt
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
sourceimpl StructOpt for CommonSmartModuleOpt
impl StructOpt for CommonSmartModuleOpt
sourcefn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Builds the struct from clap::ArgMatches. It’s guaranteed to succeed
if matches originates from an App generated by StructOpt::clap called on
the same type, otherwise it must panic. Read more
sourcefn from_args() -> Self
fn from_args() -> Self
Builds the struct from the command line arguments (std::env::args_os).
Calls clap::Error::exit on failure, printing the error message and aborting the program. Read more
sourcefn from_args_safe() -> Result<Self, Error>
fn from_args_safe() -> Result<Self, Error>
Builds the struct from the command line arguments (std::env::args_os).
Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program,
so calling .exit is up to you. Read more
sourcefn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec of your making.
Print the error message and quit the program in case of failure. Read more
sourcefn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec of your making. Read more
Auto Trait Implementations
impl RefUnwindSafe for CommonSmartModuleOpt
impl Send for CommonSmartModuleOpt
impl Sync for CommonSmartModuleOpt
impl Unpin for CommonSmartModuleOpt
impl UnwindSafe for CommonSmartModuleOpt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more