pub struct ArbitraryJsonPathQueryParams {
pub recursive_depth: u32,
pub desired_size: u32,
pub max_segments: usize,
pub min_selectors: usize,
pub max_selectors: usize,
pub only_rsonpath_supported_subset: bool,
}
Expand description
Parameters of the ArbitraryJsonPathQuery
Arbitrary
implementation.
Fields§
§recursive_depth: u32
Depth limit for recursion for generated JSONPath queries. Default value: 3.
JSONPath queries are recursive since a filter selector can contain an arbitrary JSONPath query. This limits the nesting level. See proptest::strategy::Strategy::prop_recursive for details of how this affects the recursive generation.
desired_size: u32
Desired size in terms of tree nodes of a generated JSONPath query. Default value: 10.
JSONPath queries are recursive since a filter selector can contain an arbitrary JSONPath query. This limits the nesting level. See proptest::strategy::Strategy::prop_recursive for details of how this affects the recursive generation.
max_segments: usize
Limit on the number of segments in the generated query, not including the initial root $
selector.
Default value: 10.
min_selectors: usize
Minimum number of selectors in each of the generated segments. Default value: 1.
Must be non-zero.
max_selectors: usize
Maximum number of selectors in each of the generated segments. Default value: 5.
Must be at least min_segments
.
only_rsonpath_supported_subset: bool
Only generate query elements that are supported by the rsonpath
crate.
Consult rsonpath’s documentation for details on what this entails.