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: u32Depth 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: u32Desired 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: usizeLimit on the number of segments in the generated query, not including the initial root $ selector.
Default value: 10.
min_selectors: usizeMinimum number of selectors in each of the generated segments. Default value: 1.
Must be non-zero.
max_selectors: usizeMaximum number of selectors in each of the generated segments. Default value: 5.
Must be at least min_segments.
only_rsonpath_supported_subset: boolOnly generate query elements that are supported by the rsonpath crate.
Consult rsonpath’s documentation for details on what this entails.