Skip to main content

IntoQuery

Trait IntoQuery 

Source
pub trait IntoQuery {
    // Required method
    fn into_query(self) -> Result<Map<String, Value>, Error>;
}
Expand description

Types accepted as query parameters: Query, a JSON object (serde_json::Value or serde_json::Map), or references to them.

A Value that is not an object (or null) is rejected when the request is sent.

Required Methods§

Source

fn into_query(self) -> Result<Map<String, Value>, Error>

Convert into a JSON object of parameters.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoQuery for &Map<String, Value>

Source§

impl IntoQuery for &Value

Source§

impl IntoQuery for Map<String, Value>

Source§

impl IntoQuery for Value

Implementors§