pub enum JsonPathSegment {
Key(String),
Index(usize),
}Expand description
One segment of a JsonPath.
Variants§
Trait Implementations§
Source§impl Clone for JsonPathSegment
impl Clone for JsonPathSegment
Source§fn clone(&self) -> JsonPathSegment
fn clone(&self) -> JsonPathSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JsonPathSegment
impl Debug for JsonPathSegment
impl Eq for JsonPathSegment
Source§impl PartialEq for JsonPathSegment
impl PartialEq for JsonPathSegment
Source§fn eq(&self, other: &JsonPathSegment) -> bool
fn eq(&self, other: &JsonPathSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.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