Skip to main content

QueryItem

Trait QueryItem 

Source
pub trait QueryItem {
    // Required method
    fn query_item(&self) -> Result<(&str, Cow<'_, str>), Error>;
}
Expand description

An item in a query.

Required Methods§

Source

fn query_item(&self) -> Result<(&str, Cow<'_, str>), Error>

Represent the item for serialization into a query.

The first item of the resulting tuple is a key, the second - its value.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§