Skip to main content

ODataQueryExt

Trait ODataQueryExt 

Source
pub trait ODataQueryExt<E: EntityTrait>: Sized {
    // Required method
    fn apply_odata_query(
        self,
        query: &ODataQuery,
        fld_map: &FieldMap<E>,
        tiebreaker: (&str, SortDir),
    ) -> ODataBuildResult<Self>;
}
Expand description

Extension trait for applying full OData query (filter + cursor + order)

Required Methods§

Source

fn apply_odata_query( self, query: &ODataQuery, fld_map: &FieldMap<E>, tiebreaker: (&str, SortDir), ) -> ODataBuildResult<Self>

Apply full OData query including filter, cursor, and ordering.

§Errors

Returns ODataBuildError if any part of the query application fails.

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.

Implementations on Foreign Types§

Source§

impl<E> ODataQueryExt<E> for Select<E>

Source§

fn apply_odata_query( self, query: &ODataQuery, fld_map: &FieldMap<E>, tiebreaker: (&str, SortDir), ) -> ODataBuildResult<Self>

Implementors§