A query language for Serde data model.
This crate provides DeserializeQuery
trait and its derive macro for defining a query.
Example
# use Error;
#
Deriving DeserializeQuery
To declare a query, put #[derive(DeserializeQuery)]
on your type.
Each field must have a #[query(...)]
attribute for specifying
which part of the document should be retrieved, starting from the root.
#[query(...)]
syntax
serde-query
currently supports the following syntax for accessing a part of the input.
.field
for accessing a field with a namefield
of an object.