ArbitraryJsonPathQueryParams

Struct ArbitraryJsonPathQueryParams 

Source
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.

Trait Implementations§

Source§

impl Debug for ArbitraryJsonPathQueryParams

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ArbitraryJsonPathQueryParams

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V