pub struct FilteringOptions {
pub jev: Option<String>,
pub jq: Option<String>,
}Expand description
Output filtering requests for host commands.
Flatten this alongside crate::FetcherOptions or crate::ListerOptions
in a host’s Clap arguments. Both fields default to None, leaving output
unfiltered. The host applies Jev before jq and supplies the evaluators and any
required credentials. This type stores expressions without evaluating them;
asimov-runner does not perform this filtering.
Fields§
§jev: Option<String>Filter output using a Jev noul (an assertion evaluated as true or false).
The NOUL argument should be an assertion, such as
The name is Ukrainian, rather than a question. Applied by the host
before Self::jq.
jq: Option<String>Filter and/or transform JSON-LD output using a jq expression.
For example, select(.name). Applied by the host after Self::jev.
Implementations§
Source§impl FilteringOptions
impl FilteringOptions
Sourcepub fn builder() -> FilteringOptionsBuilder
pub fn builder() -> FilteringOptionsBuilder
Create an instance of FilteringOptions using the builder syntax
Trait Implementations§
Source§impl Args for FilteringOptions
Available on crate feature clap only.
impl Args for FilteringOptions
clap only.Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for FilteringOptions
impl Clone for FilteringOptions
Source§impl Debug for FilteringOptions
impl Debug for FilteringOptions
Source§impl Default for FilteringOptions
impl Default for FilteringOptions
impl Eq for FilteringOptions
Source§impl FromArgMatches for FilteringOptions
Available on crate feature clap only.
impl FromArgMatches for FilteringOptions
clap only.Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.