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
Source§impl<'de> Deserialize<'de> for FilteringOptions
Available on crate feature serde only.
impl<'de> Deserialize<'de> for FilteringOptions
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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.Source§impl Hash for FilteringOptions
impl Hash for FilteringOptions
Source§impl Ord for FilteringOptions
impl Ord for FilteringOptions
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for FilteringOptions
impl PartialEq for FilteringOptions
Source§impl PartialOrd for FilteringOptions
impl PartialOrd for FilteringOptions
Source§impl Serialize for FilteringOptions
Available on crate feature serde only.
impl Serialize for FilteringOptions
serde only.