Enum jsonpath_rust::JsonPathValue
source · [−]pub enum JsonPathValue<'a, Data> {
Slice(&'a Data),
NewValue(Data),
}
Expand description
A result of json path Can be either a slice of initial data or a new generated value(like length of array)
Variants
Slice(&'a Data)
NewValue(Data)
Implementations
sourceimpl<'a, Data: Clone + Debug> JsonPathValue<'a, Data>
impl<'a, Data: Clone + Debug> JsonPathValue<'a, Data>
sourceimpl<'a, Data> JsonPathValue<'a, Data>
impl<'a, Data> JsonPathValue<'a, Data>
Trait Implementations
sourceimpl<'a, Data: Clone> Clone for JsonPathValue<'a, Data>
impl<'a, Data: Clone> Clone for JsonPathValue<'a, Data>
sourcefn clone(&self) -> JsonPathValue<'a, Data>
fn clone(&self) -> JsonPathValue<'a, Data>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a, Data: Debug> Debug for JsonPathValue<'a, Data>
impl<'a, Data: Debug> Debug for JsonPathValue<'a, Data>
sourceimpl<'a, Data> From<&'a Data> for JsonPathValue<'a, Data>
impl<'a, Data> From<&'a Data> for JsonPathValue<'a, Data>
sourceimpl<'a, Data: PartialEq> PartialEq<JsonPathValue<'a, Data>> for JsonPathValue<'a, Data>
impl<'a, Data: PartialEq> PartialEq<JsonPathValue<'a, Data>> for JsonPathValue<'a, Data>
sourcefn eq(&self, other: &JsonPathValue<'a, Data>) -> bool
fn eq(&self, other: &JsonPathValue<'a, Data>) -> bool
impl<'a, Data: Copy> Copy for JsonPathValue<'a, Data>
impl<'a, Data> StructuralPartialEq for JsonPathValue<'a, Data>
Auto Trait Implementations
impl<'a, Data> RefUnwindSafe for JsonPathValue<'a, Data>where
Data: RefUnwindSafe,
impl<'a, Data> Send for JsonPathValue<'a, Data>where
Data: Send + Sync,
impl<'a, Data> Sync for JsonPathValue<'a, Data>where
Data: Sync,
impl<'a, Data> Unpin for JsonPathValue<'a, Data>where
Data: Unpin,
impl<'a, Data> UnwindSafe for JsonPathValue<'a, Data>where
Data: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more