Enum jsonpath_rust::parser::model::JsonPathIndex
source · pub enum JsonPathIndex {
Single(Value),
UnionIndex(Vec<Value>),
UnionKeys(Vec<String>),
Slice(i32, i32, usize),
Filter(FilterExpression),
}
Variants§
Single(Value)
A single element in array
UnionIndex(Vec<Value>)
Union represents a several indexes
UnionKeys(Vec<String>)
Union represents a several keys
Slice(i32, i32, usize)
DEfault slice where the items are start/end/step respectively
Filter(FilterExpression)
Filter ?()
Trait Implementations§
source§impl Clone for JsonPathIndex
impl Clone for JsonPathIndex
source§fn clone(&self) -> JsonPathIndex
fn clone(&self) -> JsonPathIndex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for JsonPathIndex
impl Debug for JsonPathIndex
Auto Trait Implementations§
impl Freeze for JsonPathIndex
impl RefUnwindSafe for JsonPathIndex
impl Send for JsonPathIndex
impl Sync for JsonPathIndex
impl Unpin for JsonPathIndex
impl UnwindSafe for JsonPathIndex
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more