pub struct Element<'a> {
pub path: String,
pub indices: Vec<usize>,
pub value: &'a Value,
}
Expand description
Single element struct containing the path, set of array indices, and json value
Fields§
§path: String
The full path from the base of a json structure to the value contained in the Element
indices: Vec<usize>
The full set of array indices in the path, useful for grouping sets of Element
structs to the same array element
value: &'a Value
The serde_json::Value
of described by the path
Trait Implementations§
impl<'a> StructuralPartialEq for Element<'a>
Auto Trait Implementations§
impl<'a> Freeze for Element<'a>
impl<'a> RefUnwindSafe for Element<'a>
impl<'a> Send for Element<'a>
impl<'a> Sync for Element<'a>
impl<'a> Unpin for Element<'a>
impl<'a> UnwindSafe for Element<'a>
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