pub enum JsonPathSegment {
Key(String),
Index(usize),
}Expand description
One segment of a JsonPath: an object key or an array index.
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 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.