Trait DeserializeQuery

Source
pub trait DeserializeQuery<'de>
where Self: From<Self::Query>, Self::Query: Deserialize<'de> + Deref<Target = Self> + DerefMut,
{ type Query; }
Expand description

A data structure that can be deserialized with a query.

The Query type is a #[repr(transparent)] wrapper automatically generated by the proc macro. You can deserialize Query<YourType> first and then call .into() to get YourType.

Required Associated Types§

Source

type Query

The query type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§