#[non_exhaustive]pub enum JsonPathSegment {
Key(String),
Index(usize),
}Expand description
Identifies an object key or array index in a JSON value path.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for JsonPathSegment
impl Clone for JsonPathSegment
Source§impl Debug for JsonPathSegment
impl Debug for JsonPathSegment
impl Eq for JsonPathSegment
Source§impl Hash for JsonPathSegment
impl Hash for JsonPathSegment
Source§impl PartialEq for JsonPathSegment
impl PartialEq for JsonPathSegment
impl StructuralPartialEq for JsonPathSegment
Auto Trait Implementations§
impl Freeze for JsonPathSegment
impl RefUnwindSafe for JsonPathSegment
impl Send for JsonPathSegment
impl Sync for JsonPathSegment
impl Unpin for JsonPathSegment
impl UnsafeUnpin for JsonPathSegment
impl UnwindSafe for JsonPathSegment
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