Trait RbumCrudQueryPackage

Source
pub trait RbumCrudQueryPackage {
    // Required methods
    fn with_filter(
        &mut self,
        table_name: &str,
        filter: &RbumBasicFilterReq,
        ignore_owner: bool,
        has_scope: bool,
        ctx: &TardisContext,
    ) -> &mut Self;
    fn with_scope(
        &mut self,
        table_name: &str,
        filter_own_paths: &str,
        with_sub_own_paths: bool,
    ) -> &mut Self;
}
Expand description

Package query request

Required Methods§

Source

fn with_filter( &mut self, table_name: &str, filter: &RbumBasicFilterReq, ignore_owner: bool, has_scope: bool, ctx: &TardisContext, ) -> &mut Self

Add common filter request conditions

添加通用过滤请求条件

Source

fn with_scope( &mut self, table_name: &str, filter_own_paths: &str, with_sub_own_paths: bool, ) -> &mut Self

Add scope filter conditions

添加作用域过滤条件

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 RbumCrudQueryPackage for SelectStatement

Source§

fn with_filter( &mut self, table_name: &str, filter: &RbumBasicFilterReq, with_owner: bool, has_scope: bool, ctx: &TardisContext, ) -> &mut Self

Source§

fn with_scope( &mut self, table_name: &str, filter_own_paths: &str, with_sub_own_paths: bool, ) -> &mut Self

Implementors§