pub enum JsonPathIndex<T> {
Single(T),
UnionIndex(Vec<T>),
UnionKeys(Vec<String>),
Slice(i32, i32, usize),
Filter(FilterExpression<T>),
}
Variants§
Single(T)
A single element in array
UnionIndex(Vec<T>)
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<T>)
Filter ?()
Trait Implementations§
Source§impl<T: Clone> Clone for JsonPathIndex<T>
impl<T: Clone> Clone for JsonPathIndex<T>
Source§fn clone(&self) -> JsonPathIndex<T>
fn clone(&self) -> JsonPathIndex<T>
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<T: Debug> Debug for JsonPathIndex<T>
impl<T: Debug> Debug for JsonPathIndex<T>
Source§impl<T: Display> Display for JsonPathIndex<T>
impl<T: Display> Display for JsonPathIndex<T>
Source§impl<T> PartialEq for JsonPathIndex<T>where
T: PartialEq,
impl<T> PartialEq for JsonPathIndex<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for JsonPathIndex<T>where
T: Freeze,
impl<T> RefUnwindSafe for JsonPathIndex<T>where
T: RefUnwindSafe,
impl<T> Send for JsonPathIndex<T>where
T: Send,
impl<T> Sync for JsonPathIndex<T>where
T: Sync,
impl<T> Unpin for JsonPathIndex<T>where
T: Unpin,
impl<T> UnwindSafe for JsonPathIndex<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)