Skip to main content

ODataOrderPageExt

Trait ODataOrderPageExt 

Source
pub trait ODataOrderPageExt<E: EntityTrait>: Sized {
    // Required method
    fn apply_odata_order_page(
        self,
        order: &ODataOrderBy,
        fld_map: &FieldMap<E>,
    ) -> Result<Self, ODataError>;
}
Expand description

Extension trait for applying ordering with centralized error handling

Required Methods§

Source

fn apply_odata_order_page( self, order: &ODataOrderBy, fld_map: &FieldMap<E>, ) -> Result<Self, ODataError>

Apply OData ordering with page-level error handling.

§Errors

Returns ODataError if an unknown field is referenced.

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> ODataOrderPageExt<E> for Select<E>

Source§

fn apply_odata_order_page( self, order: &ODataOrderBy, fld_map: &FieldMap<E>, ) -> Result<Self, ODataError>

Implementors§