pub enum JsonPathPiece {
ArrayItem(u32),
ObjectMember(String),
}Expand description
A piece of a JSON path
A piece can either represent the index of a JSON array item or the name of a JSON object member.
Variants§
ArrayItem(u32)
JSON array item at the specified index (starting at 0)
ObjectMember(String)
JSON object member with the specified name
Trait Implementations§
Source§impl Clone for JsonPathPiece
impl Clone for JsonPathPiece
Source§fn clone(&self) -> JsonPathPiece
fn clone(&self) -> JsonPathPiece
Returns a duplicate 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 JsonPathPiece
impl Debug for JsonPathPiece
Source§impl From<&str> for JsonPathPiece
Creates a JsonPathPiece::ObjectMember with the string as member name
impl From<&str> for JsonPathPiece
Creates a JsonPathPiece::ObjectMember with the string as member name
Source§impl From<String> for JsonPathPiece
Creates a JsonPathPiece::ObjectMember with the string as member name
impl From<String> for JsonPathPiece
Creates a JsonPathPiece::ObjectMember with the string as member name
Source§impl From<u32> for JsonPathPiece
Creates a JsonPathPiece::ArrayItem with the number as index
impl From<u32> for JsonPathPiece
Creates a JsonPathPiece::ArrayItem with the number as index
Source§impl PartialEq for JsonPathPiece
impl PartialEq for JsonPathPiece
impl Eq for JsonPathPiece
impl StructuralPartialEq for JsonPathPiece
Auto Trait Implementations§
impl Freeze for JsonPathPiece
impl RefUnwindSafe for JsonPathPiece
impl Send for JsonPathPiece
impl Sync for JsonPathPiece
impl Unpin for JsonPathPiece
impl UnwindSafe for JsonPathPiece
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