pub trait RbumCrudOperation<E, AddReq, ModifyReq, SummaryResp, DetailResp, FilterReq>where
E: TardisActiveModel + Sync + Send,
AddReq: Sync + Send,
ModifyReq: Sync + Send,
SummaryResp: FromQueryResult + ParseFromJSON + ToJSON + Serialize + Send + Sync,
DetailResp: FromQueryResult + ParseFromJSON + ToJSON + Serialize + Send + Sync,
FilterReq: Sync + Send,{
Show 50 methods
// Required methods
fn get_table_name() -> &'static str;
fn package_add<'life0, 'life1, 'life2, 'async_trait>(
add_req: &'life0 AddReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<E>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn package_modify<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
modify_req: &'life1 ModifyReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<E>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn package_query<'life0, 'life1, 'life2, 'async_trait>(
is_detail: bool,
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<SelectStatement>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
// Provided methods
fn get_obj_name() -> String { ... }
fn get_obj_name_from(table_name: &str) -> String { ... }
fn check_ownership<'life0, 'life1, 'life2, 'async_trait>(
id: &'life0 str,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn check_ownership_with_table_name<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
table_name: &'life1 str,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn package_ownership_query(id: &str, ctx: &TardisContext) -> SelectStatement { ... }
fn package_ownership_query_with_table_name(
id: &str,
table_name: &str,
ctx: &TardisContext,
) -> SelectStatement { ... }
fn check_scope<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
table_name: &'life1 str,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn check_scopes<'life0, 'life1, 'life2, 'life3, 'async_trait>(
values: HashMap<String, &'life0 Vec<String>>,
expect_number: u64,
table_name: &'life1 str,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn check_exist_before_delete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
rel_table_name: &'life1 str,
rel_field_name: &'life2 str,
funs: &'life3 TardisFunsInst,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn check_exist_with_cond_before_delete<'life0, 'life1, 'async_trait>(
rel_table_name: &'life0 str,
condition: Condition,
funs: &'life1 TardisFunsInst,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn before_add_rbum<'life0, 'life1, 'life2, 'async_trait>(
_: &'life0 mut AddReq,
_: &'life1 TardisFunsInst,
_: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn after_add_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
_: &'life0 str,
_: &'life1 AddReq,
_: &'life2 TardisFunsInst,
_: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn add_rbum<'life0, 'life1, 'life2, 'async_trait>(
add_req: &'life0 mut AddReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<String>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn before_modify_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
_: &'life1 mut ModifyReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn after_modify_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
_: &'life0 str,
_: &'life1 mut ModifyReq,
_: &'life2 TardisFunsInst,
_: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn modify_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
modify_req: &'life1 mut ModifyReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn before_delete_rbum<'life0, 'life1, 'life2, 'async_trait>(
id: &'life0 str,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Option<DetailResp>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn after_delete_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
_: &'life0 str,
_: &'life1 Option<DetailResp>,
_: &'life2 TardisFunsInst,
_: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn delete_rbum<'life0, 'life1, 'life2, 'async_trait>(
id: &'life0 str,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<u64>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn peek_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
filter: &'life1 FilterReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<SummaryResp>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn do_peek_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
filter: &'life1 FilterReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<SummaryResp>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn get_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
filter: &'life1 FilterReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<DetailResp>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn do_get_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
filter: &'life1 FilterReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<DetailResp>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn paginate_id_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<String>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn do_paginate_id_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<String>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn paginate_id_name_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<IdNameResp>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn do_paginate_id_name_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<IdNameResp>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn paginate_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<SummaryResp>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn do_paginate_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<SummaryResp>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn paginate_detail_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<DetailResp>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn do_paginate_detail_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<DetailResp>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn find_one_rbum<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Option<SummaryResp>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn do_find_one_rbum<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Option<SummaryResp>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn find_id_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<String>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn do_find_id_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<String>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn find_id_name_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<HashMap<String, String>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn do_find_id_name_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<HashMap<String, String>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn find_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<SummaryResp>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn do_find_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<SummaryResp>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn find_one_detail_rbum<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Option<DetailResp>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn do_find_one_detail_rbum<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Option<DetailResp>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn find_detail_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<DetailResp>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn do_find_detail_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<DetailResp>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn count_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<u64>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn do_count_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<u64>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn exist_rbum<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<bool>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
}Expand description
Resource CURD operation
资源CURD操作
Required Methods§
Sourcefn get_table_name() -> &'static str
fn get_table_name() -> &'static str
Get the name of the table
获取表的名称
Sourcefn package_add<'life0, 'life1, 'life2, 'async_trait>(
add_req: &'life0 AddReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<E>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn package_add<'life0, 'life1, 'life2, 'async_trait>(
add_req: &'life0 AddReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<E>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Package add request
组装资源的添加请求
§Examples:
async fn package_add(add_req: &IamConfigAddReq, _: &TardisFunsInst, _: &TardisContext) -> TardisResult<iam_config::ActiveModel> {
Ok(iam_config::ActiveModel {
id: Set(TardisFuns::field.nanoid()),
code: Set(add_req.code.to_string()),
name: Set(add_req.name.as_ref().unwrap_or(&"".to_string()).to_string()),
note: Set(add_req.note.as_ref().unwrap_or(&"".to_string()).to_string()),
value1: Set(add_req.value1.as_ref().unwrap_or(&"".to_string()).to_string()),
value2: Set(add_req.value2.as_ref().unwrap_or(&"".to_string()).to_string()),
ext: Set(add_req.ext.as_ref().unwrap_or(&"".to_string()).to_string()),
rel_item_id: Set(add_req.rel_item_id.to_string()),
disabled: Set(add_req.disabled.unwrap_or(false)),
data_type: Set(add_req.data_type.to_string()),
..Default::default()
})
}Sourcefn package_modify<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
modify_req: &'life1 ModifyReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<E>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn package_modify<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
modify_req: &'life1 ModifyReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<E>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Package modify request
组装资源的修改请求
§Examples:
async fn package_modify(id: &str, modify_req: &IamConfigModifyReq, _: &TardisFunsInst, _: &TardisContext) -> TardisResult<iam_config::ActiveModel> {
let mut iam_config = iam_config::ActiveModel {
id: Set(id.to_string()),
..Default::default()
};
if let Some(name) = &modify_req.name {
iam_config.name = Set(name.to_string());
}
if let Some(data_type) = &modify_req.data_type {
iam_config.data_type = Set(data_type.to_string());
}
if let Some(note) = &modify_req.note {
iam_config.note = Set(note.to_string());
}
if let Some(value1) = &modify_req.value1 {
iam_config.value1 = Set(value1.to_string());
}
if let Some(value2) = &modify_req.value2 {
iam_config.value2 = Set(value2.to_string());
}
if let Some(ext) = &modify_req.ext {
iam_config.ext = Set(ext.to_string());
}
if let Some(disabled) = &modify_req.disabled {
iam_config.disabled = Set(*disabled);
}
Ok(iam_config)
}Sourcefn package_query<'life0, 'life1, 'life2, 'async_trait>(
is_detail: bool,
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<SelectStatement>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn package_query<'life0, 'life1, 'life2, 'async_trait>(
is_detail: bool,
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<SelectStatement>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Package query request
组装资源的查询请求
§Examples:
async fn package_query(is_detail: bool, filter: &IamConfigFilterReq, _: &TardisFunsInst, ctx: &TardisContext) -> TardisResult<SelectStatement> {
let mut query = Query::select();
query
.columns(vec![
(iam_config::Entity, iam_config::Column::Id),
(iam_config::Entity, iam_config::Column::Code),
(iam_config::Entity, iam_config::Column::Name),
(iam_config::Entity, iam_config::Column::Note),
(iam_config::Entity, iam_config::Column::Value1),
(iam_config::Entity, iam_config::Column::Value2),
(iam_config::Entity, iam_config::Column::Ext),
(iam_config::Entity, iam_config::Column::Disabled),
(iam_config::Entity, iam_config::Column::DataType),
(iam_config::Entity, iam_config::Column::RelItemId),
(iam_config::Entity, iam_config::Column::OwnPaths),
(iam_config::Entity, iam_config::Column::Owner),
(iam_config::Entity, iam_config::Column::CreateTime),
(iam_config::Entity, iam_config::Column::UpdateTime),
])
.from(iam_config::Entity);
if let Some(code) = &filter.code {
query.and_where(Expr::col(iam_config::Column::Code).eq(code));
}
if let Some(rel_item_id) = &filter.rel_item_id {
query.and_where(Expr::col(iam_config::Column::RelItemId).eq(rel_item_id));
}
if let Some(disabled) = &filter.disabled {
query.and_where(Expr::col(iam_config::Column::Disabled).eq(*disabled));
}
query.with_filter(Self::get_table_name(), &filter.basic, is_detail, false, ctx);
Ok(query)
}Provided Methods§
Sourcefn get_obj_name() -> String
fn get_obj_name() -> String
Get the name of the object
获取对象的名称
Mostly used for printing log identifiers.
多用于打印日志的标识。
Sourcefn get_obj_name_from(table_name: &str) -> String
fn get_obj_name_from(table_name: &str) -> String
Get the object name from the custom table name
从自定义表名中获取对象名称
Sourcefn check_ownership<'life0, 'life1, 'life2, 'async_trait>(
id: &'life0 str,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn check_ownership<'life0, 'life1, 'life2, 'async_trait>(
id: &'life0 str,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Check the ownership of the specified resource id
检查指定资源id的所有权
When the resource ownership path is equal to the current context ownership path or its descendant,
return Ok, otherwise return Err.
当资源所有权路径等于当前上下文所有权路径或是其子孙级时返回 Ok ,反之返回 Err 。
Sourcefn check_ownership_with_table_name<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
table_name: &'life1 str,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn check_ownership_with_table_name<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
table_name: &'life1 str,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Check the ownership of the specified resource id and table name
检查指定资源id和表名的所有权
When the resource ownership path is equal to the current context ownership path or its descendant,
return Ok, otherwise return Err.
当资源所有权路径等于当前上下文所有权路径或是其子孙级时返回 Ok ,反之返回 Err 。
Sourcefn package_ownership_query(id: &str, ctx: &TardisContext) -> SelectStatement
fn package_ownership_query(id: &str, ctx: &TardisContext) -> SelectStatement
Package the ownership query statement of the specified resource id
组装指定资源id的所有权的查询语句
When the resource ownership path is equal to the current context ownership path or its descendant, return a record, otherwise return an empty record.
当资源所有权路径等于当前上下文所有权路径或是其子孙级时查询到一条记录 ,反之查询为空。
Sourcefn package_ownership_query_with_table_name(
id: &str,
table_name: &str,
ctx: &TardisContext,
) -> SelectStatement
fn package_ownership_query_with_table_name( id: &str, table_name: &str, ctx: &TardisContext, ) -> SelectStatement
Package the ownership query statement of the specified resource id and table name
组装指定资源id和表名的所有权的查询语句
When the resource ownership path is equal to the current context ownership path or its descendant, return a record, otherwise return an empty record.
Sourcefn check_scope<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
table_name: &'life1 str,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn check_scope<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
table_name: &'life1 str,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Check the scope of the specified resource id and table name
检查指定资源id和表名的作用域
Sourcefn check_scopes<'life0, 'life1, 'life2, 'life3, 'async_trait>(
values: HashMap<String, &'life0 Vec<String>>,
expect_number: u64,
table_name: &'life1 str,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn check_scopes<'life0, 'life1, 'life2, 'life3, 'async_trait>(
values: HashMap<String, &'life0 Vec<String>>,
expect_number: u64,
table_name: &'life1 str,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Check the scope of the specified field set and table name
检查指定字段集合和表名的作用域
When the number of records queried is equal to the expected number of records, return Ok, otherwise return Err.
当查询的记录数等于期望的记录数时返回 Ok ,反之返回 Err 。
§Parameters
values- The field set to be checked. key = field name, value = The set of values used forinqueriesexpect_number- expected number of eligible recordstable_name- The table name to be checked
Sourcefn check_exist_before_delete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
rel_table_name: &'life1 str,
rel_field_name: &'life2 str,
funs: &'life3 TardisFunsInst,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn check_exist_before_delete<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
rel_table_name: &'life1 str,
rel_field_name: &'life2 str,
funs: &'life3 TardisFunsInst,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Check whether there is an association before deleting the resource with the specified id and table name.
删除指定id和表名的资源前检查是否存在关联
Sourcefn check_exist_with_cond_before_delete<'life0, 'life1, 'async_trait>(
rel_table_name: &'life0 str,
condition: Condition,
funs: &'life1 TardisFunsInst,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn check_exist_with_cond_before_delete<'life0, 'life1, 'async_trait>(
rel_table_name: &'life0 str,
condition: Condition,
funs: &'life1 TardisFunsInst,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check whether there is an association before deleting the resource with the specified condition and table name.
删除指定条件和表名的资源前检查是否存在关联
Sourcefn before_add_rbum<'life0, 'life1, 'life2, 'async_trait>(
_: &'life0 mut AddReq,
_: &'life1 TardisFunsInst,
_: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn before_add_rbum<'life0, 'life1, 'life2, 'async_trait>(
_: &'life0 mut AddReq,
_: &'life1 TardisFunsInst,
_: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Pre-processing of the add request
添加请求的前置处理
Sourcefn after_add_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
_: &'life0 str,
_: &'life1 AddReq,
_: &'life2 TardisFunsInst,
_: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn after_add_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
_: &'life0 str,
_: &'life1 AddReq,
_: &'life2 TardisFunsInst,
_: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Post-processing of the add request
添加请求的后置处理
Sourcefn add_rbum<'life0, 'life1, 'life2, 'async_trait>(
add_req: &'life0 mut AddReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<String>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn add_rbum<'life0, 'life1, 'life2, 'async_trait>(
add_req: &'life0 mut AddReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<String>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Add resource
添加资源
Sourcefn before_modify_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
_: &'life1 mut ModifyReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn before_modify_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
_: &'life1 mut ModifyReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Pre-processing of the modify request
修改请求的前置处理
Sourcefn after_modify_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
_: &'life0 str,
_: &'life1 mut ModifyReq,
_: &'life2 TardisFunsInst,
_: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn after_modify_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
_: &'life0 str,
_: &'life1 mut ModifyReq,
_: &'life2 TardisFunsInst,
_: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Post-processing of the modify request
修改请求的后置处理
Sourcefn modify_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
modify_req: &'life1 mut ModifyReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn modify_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
modify_req: &'life1 mut ModifyReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Modify resource
修改资源
Sourcefn before_delete_rbum<'life0, 'life1, 'life2, 'async_trait>(
id: &'life0 str,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Option<DetailResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn before_delete_rbum<'life0, 'life1, 'life2, 'async_trait>(
id: &'life0 str,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Option<DetailResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Pre-processing of the delete request
删除请求的前置处理
Sourcefn after_delete_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
_: &'life0 str,
_: &'life1 Option<DetailResp>,
_: &'life2 TardisFunsInst,
_: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn after_delete_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
_: &'life0 str,
_: &'life1 Option<DetailResp>,
_: &'life2 TardisFunsInst,
_: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Post-processing of the delete request
删除请求的后置处理
Sourcefn delete_rbum<'life0, 'life1, 'life2, 'async_trait>(
id: &'life0 str,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<u64>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete_rbum<'life0, 'life1, 'life2, 'async_trait>(
id: &'life0 str,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<u64>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Delete resource
删除资源
Sourcefn peek_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
filter: &'life1 FilterReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<SummaryResp>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn peek_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
filter: &'life1 FilterReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<SummaryResp>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Query and get a resource summary
查询并获取一条资源概要信息
Sourcefn do_peek_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
filter: &'life1 FilterReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<SummaryResp>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn do_peek_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
filter: &'life1 FilterReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<SummaryResp>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Query and get a resource summary
查询并获取一条资源概要信息
NOTE: Internal method, not recommended to override.
NOTE: 内部方法,不建议重写。
Sourcefn get_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
filter: &'life1 FilterReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<DetailResp>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn get_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
filter: &'life1 FilterReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<DetailResp>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Query and get a resource detail
查询并获取一条资源详细信息
Sourcefn do_get_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
filter: &'life1 FilterReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<DetailResp>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn do_get_rbum<'life0, 'life1, 'life2, 'life3, 'async_trait>(
id: &'life0 str,
filter: &'life1 FilterReq,
funs: &'life2 TardisFunsInst,
ctx: &'life3 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<DetailResp>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Query and get a resource detail
查询并获取一条资源详细信息
NOTE: Internal method, not recommended to override.
NOTE: 内部方法,不建议重写。
Sourcefn paginate_id_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<String>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn paginate_id_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<String>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and page to get the resource id set
查询并分页获取资源id集合
Sourcefn do_paginate_id_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<String>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn do_paginate_id_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<String>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and page to get the resource id set
查询并分页获取资源id集合
NOTE: Internal method, not recommended to override.
NOTE: 内部方法,不建议重写。
Sourcefn paginate_id_name_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<IdNameResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn paginate_id_name_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<IdNameResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and page to get the resource id and name set
查询并分页获取资源id和名称集合
Sourcefn do_paginate_id_name_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<IdNameResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn do_paginate_id_name_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<IdNameResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and page to get the resource id and name set
查询并分页获取资源id和名称集合
NOTE: Internal method, not recommended to override.
NOTE: 内部方法,不建议重写。
Sourcefn paginate_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<SummaryResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn paginate_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<SummaryResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and page to get the resource summary set
查询并分页获取资源概要信息集合
Sourcefn do_paginate_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<SummaryResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn do_paginate_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<SummaryResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and page to get the resource summary set
查询并分页获取资源概要信息集合
NOTE: Internal method, not recommended to override.
NOTE: 内部方法,不建议重写。
Sourcefn paginate_detail_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<DetailResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn paginate_detail_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<DetailResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and page to get the resource detail set
查询并分页获取资源详细信息集合
Sourcefn do_paginate_detail_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<DetailResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn do_paginate_detail_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<TardisPage<DetailResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and page to get the resource detail set
查询并分页获取资源详细信息集合
NOTE: Internal method, not recommended to override.
NOTE: 内部方法,不建议重写。
Sourcefn find_one_rbum<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Option<SummaryResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn find_one_rbum<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Option<SummaryResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and get a resource summary
查询并获取一条资源概要信息
Sourcefn do_find_one_rbum<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Option<SummaryResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn do_find_one_rbum<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Option<SummaryResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and get a resource summary
查询并获取一条资源概要信息
NOTE: Internal method, not recommended to override.
NOTE: 内部方法,不建议重写。
Sourcefn find_id_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<String>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn find_id_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<String>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and get the resource id set
查询并获取资源id集合
Sourcefn do_find_id_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<String>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn do_find_id_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<String>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and get the resource id set
查询并获取资源id集合
NOTE: Internal method, not recommended to override.
NOTE: 内部方法,不建议重写。
Sourcefn find_id_name_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<HashMap<String, String>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn find_id_name_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<HashMap<String, String>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and get the resource id and name set
查询并获取资源id和名称集合
Sourcefn do_find_id_name_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<HashMap<String, String>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn do_find_id_name_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<HashMap<String, String>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and get the resource id and name set
查询并获取资源id和名称集合
NOTE: Internal method, not recommended to override.
NOTE: 内部方法,不建议重写。
Sourcefn find_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<SummaryResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn find_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<SummaryResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and get the resource summary set
查询并获取资源概要信息集合
Sourcefn do_find_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<SummaryResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn do_find_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<SummaryResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and get the resource summary set
查询并获取资源概要信息集合
NOTE: Internal method, not recommended to override.
NOTE: 内部方法,不建议重写。
Sourcefn find_one_detail_rbum<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Option<DetailResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn find_one_detail_rbum<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Option<DetailResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and get a resource detail
查询并获取一条资源详细信息
Sourcefn do_find_one_detail_rbum<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Option<DetailResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn do_find_one_detail_rbum<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Option<DetailResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and get a resource detail
查询并获取一条资源详细信息
NOTE: Internal method, not recommended to override.
NOTE: 内部方法,不建议重写。
Sourcefn find_detail_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<DetailResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn find_detail_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<DetailResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and get the resource detail set
查询并获取资源详细信息集合
Sourcefn do_find_detail_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<DetailResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn do_find_detail_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<Vec<DetailResp>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and get the resource detail set
查询并获取资源详细信息集合
NOTE: Internal method, not recommended to override.
NOTE: 内部方法,不建议重写。
Sourcefn count_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<u64>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn count_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<u64>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and count the number of resources
查询并统计资源数量
Sourcefn do_count_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<u64>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn do_count_rbums<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<u64>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and count the number of resources
查询并统计资源数量
NOTE: Internal method, not recommended to override.
NOTE: 内部方法,不建议重写。
Sourcefn exist_rbum<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<bool>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn exist_rbum<'life0, 'life1, 'life2, 'async_trait>(
filter: &'life0 FilterReq,
funs: &'life1 TardisFunsInst,
ctx: &'life2 TardisContext,
) -> Pin<Box<dyn Future<Output = TardisResult<bool>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Query and check whether the resource exists
查询并检查资源是否存在
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.