#[repr(transparent)]pub struct JsonPath<T: ?Sized>(pub T);
Expand description
JSON style path notation
T
can be Write
for Transcode
with the following behavior:
- Named fields (struct) are encoded in dot notation.
- Indices (tuple struct, array) are encoded in index notation
T
can be AsRef<str>
for IntoKeys
with the behavior described in JsonPathIter
.
Tuple Fields§
§0: T
Implementations§
source§impl<T> JsonPath<T>
impl<T> JsonPath<T>
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Extract the inner value
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for JsonPath<T>where
T: Deserialize<'de> + ?Sized,
impl<'de, T> Deserialize<'de> for JsonPath<T>where
T: Deserialize<'de> + ?Sized,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: PartialOrd + ?Sized> PartialOrd for JsonPath<T>
impl<T: PartialOrd + ?Sized> PartialOrd for JsonPath<T>
impl<T: Copy + ?Sized> Copy for JsonPath<T>
impl<T: Eq + ?Sized> Eq for JsonPath<T>
impl<T: ?Sized> StructuralPartialEq for JsonPath<T>
Auto Trait Implementations§
impl<T> Freeze for JsonPath<T>
impl<T> RefUnwindSafe for JsonPath<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for JsonPath<T>
impl<T> Sync for JsonPath<T>
impl<T> Unpin for JsonPath<T>
impl<T> UnwindSafe for JsonPath<T>where
T: UnwindSafe + ?Sized,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)