pub trait IntoQuery {
type Args;
// Required method
fn into_query(self) -> Result<QueryV2<Self::Args>, DittoError>;
}Expand description
Types which can be used to construct a QueryV2.
The main implementors are:
- String types (e.g.
String,&str, etc.) - Tuples
(S, A), whereSis a string type, andAimplementsSerialize
This conversion may be fallible.
Note that, due to historical naming reasons, this trait is not used to create a Query.
Required Associated Types§
Required Methods§
Sourcefn into_query(self) -> Result<QueryV2<Self::Args>, DittoError>
fn into_query(self) -> Result<QueryV2<Self::Args>, DittoError>
Convert this object into a QueryV2