Skip to main content

ZeroQuery

Trait ZeroQuery 

Source
pub trait ZeroQuery<C> {
    // Required method
    fn any_query(&self, context: &C) -> Cow<'_, AnyQuery>;
}
Expand description

A query a Zero materializes, runs, and preloads: an AnyQuery, a typed Query, or (with the serde feature) a QueryRequest of a define_query definition, which is built with the client’s context.

Required Methods§

Source

fn any_query(&self, context: &C) -> Cow<'_, AnyQuery>

The query, as context sees it.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<C, R, T> ZeroQuery<C> for Query<R, T>

Source§

impl<C, R, T> ZeroQuery<C> for QueryRequest<C, R, T>

Source§

impl<C> ZeroQuery<C> for AnyQuery