pub struct RbumRelServ;Implementations§
Source§impl RbumRelServ
impl RbumRelServ
Sourcepub async fn add_simple_rel(
tag: &str,
from_rbum_id: &str,
to_rbum_item_id: &str,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<()>
pub async fn add_simple_rel( tag: &str, from_rbum_id: &str, to_rbum_item_id: &str, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<()>
Add a simple relationship
添加简单的关联关系
The relationship source is the resource item.
关联的来源方为资源项。
Sourcepub async fn add_rel(
add_req: &mut RbumRelAggAddReq,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<String>
pub async fn add_rel( add_req: &mut RbumRelAggAddReq, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<String>
Add a relationship
添加关联关系
Sourcepub async fn find_from_id_rels(
tag: &str,
from_rbum_kind: &RbumRelFromKind,
with_sub: bool,
from_rbum_id: &str,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<Vec<String>>
pub async fn find_from_id_rels( tag: &str, from_rbum_kind: &RbumRelFromKind, with_sub: bool, from_rbum_id: &str, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<Vec<String>>
Find the relationship target ids of the specified condition
查找指定条件的关联目标id集合
Sourcepub async fn find_from_simple_rels(
tag: &str,
from_rbum_kind: &RbumRelFromKind,
with_sub: bool,
from_rbum_id: &str,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<Vec<RbumRelBoneResp>>
pub async fn find_from_simple_rels( tag: &str, from_rbum_kind: &RbumRelFromKind, with_sub: bool, from_rbum_id: &str, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<Vec<RbumRelBoneResp>>
Find the relationship target summary information set of the specified condition
查找指定条件的关联目标概要信息集合
Sourcepub async fn find_from_rels(
tag: &str,
from_rbum_kind: &RbumRelFromKind,
with_sub: bool,
from_rbum_id: &str,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<Vec<RbumRelAggResp>>
pub async fn find_from_rels( tag: &str, from_rbum_kind: &RbumRelFromKind, with_sub: bool, from_rbum_id: &str, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<Vec<RbumRelAggResp>>
Find the relationship aggregation detail information set of the specified condition
查找指定条件的关联聚合信息集合
Sourcepub async fn paginate_from_id_rels(
tag: &str,
from_rbum_kind: &RbumRelFromKind,
with_sub: bool,
from_rbum_id: &str,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<TardisPage<String>>
pub async fn paginate_from_id_rels( tag: &str, from_rbum_kind: &RbumRelFromKind, with_sub: bool, from_rbum_id: &str, page_number: u32, page_size: u32, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<TardisPage<String>>
Page to get the relationship target ids of the specified condition
分页查找指定条件的关联目标id集合
Sourcepub async fn paginate_from_simple_rels(
tag: &str,
from_rbum_kind: &RbumRelFromKind,
with_sub: bool,
from_rbum_id: &str,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<TardisPage<RbumRelBoneResp>>
pub async fn paginate_from_simple_rels( tag: &str, from_rbum_kind: &RbumRelFromKind, with_sub: bool, from_rbum_id: &str, page_number: u32, page_size: u32, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<TardisPage<RbumRelBoneResp>>
Page to get the relationship target summary information set of the specified condition
分页查找指定条件的关联目标概要信息集合
Sourcepub async fn paginate_from_rels(
tag: &str,
from_rbum_kind: &RbumRelFromKind,
with_sub: bool,
from_rbum_id: &str,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<TardisPage<RbumRelAggResp>>
pub async fn paginate_from_rels( tag: &str, from_rbum_kind: &RbumRelFromKind, with_sub: bool, from_rbum_id: &str, page_number: u32, page_size: u32, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<TardisPage<RbumRelAggResp>>
Page to get the relationship aggregation detail information set of the specified condition
分页查找指定条件的关联聚合信息集合
Sourcepub async fn count_from_rels(
tag: &str,
from_rbum_kind: &RbumRelFromKind,
with_sub: bool,
from_rbum_id: &str,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<u64>
pub async fn count_from_rels( tag: &str, from_rbum_kind: &RbumRelFromKind, with_sub: bool, from_rbum_id: &str, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<u64>
Statistics the number of the specified condition
统计指定条件的关联记录数
Sourcepub async fn find_to_id_rels(
tag: &str,
to_rbum_item_id: &str,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<Vec<String>>
pub async fn find_to_id_rels( tag: &str, to_rbum_item_id: &str, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<Vec<String>>
Find the relationship source ids of the specified condition
查找指定条件的关联来源id集合
Sourcepub async fn find_to_simple_rels(
tag: &str,
to_rbum_item_id: &str,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<Vec<RbumRelBoneResp>>
pub async fn find_to_simple_rels( tag: &str, to_rbum_item_id: &str, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<Vec<RbumRelBoneResp>>
Find the relationship source summary information set of the specified condition
查找指定条件的关联来源概要信息集合
Sourcepub async fn find_to_rels(
tag: &str,
to_rbum_item_id: &str,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<Vec<RbumRelAggResp>>
pub async fn find_to_rels( tag: &str, to_rbum_item_id: &str, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<Vec<RbumRelAggResp>>
Find the relationship aggregation detail information set of the specified condition
查找指定条件的关联聚合信息集合
Sourcepub async fn paginate_to_id_rels(
tag: &str,
to_rbum_item_id: &str,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<TardisPage<String>>
pub async fn paginate_to_id_rels( tag: &str, to_rbum_item_id: &str, page_number: u32, page_size: u32, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<TardisPage<String>>
Page to get the relationship source ids of the specified condition
分页查找指定条件的关联来源id集合
Sourcepub async fn paginate_to_simple_rels(
tag: &str,
to_rbum_item_id: &str,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<TardisPage<RbumRelBoneResp>>
pub async fn paginate_to_simple_rels( tag: &str, to_rbum_item_id: &str, page_number: u32, page_size: u32, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<TardisPage<RbumRelBoneResp>>
Page to get the relationship source summary information set of the specified condition
分页查找指定条件的关联来源概要信息集合
Sourcepub async fn paginate_to_rels(
tag: &str,
to_rbum_item_id: &str,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<TardisPage<RbumRelAggResp>>
pub async fn paginate_to_rels( tag: &str, to_rbum_item_id: &str, page_number: u32, page_size: u32, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<TardisPage<RbumRelAggResp>>
Page to get the relationship aggregation detail information set of the specified condition
分页查找指定条件的关联聚合信息集合
Sourcepub async fn count_to_rels(
tag: &str,
to_rbum_item_id: &str,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<u64>
pub async fn count_to_rels( tag: &str, to_rbum_item_id: &str, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<u64>
Statistics the number of the specified condition
统计指定条件的关联记录数
Sourcepub async fn find_simple_rels(
filter: &RbumRelFilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
package_to_info: bool,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<Vec<RbumRelBoneResp>>
pub async fn find_simple_rels( filter: &RbumRelFilterReq, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, package_to_info: bool, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<Vec<RbumRelBoneResp>>
Find the relationship summary information set of the specified condition
查找指定条件的关联概要信息集合
If package_to_info = true, return the relationship target information, otherwise, return the relationship source information.
当 package_to_info = true 时返回关联目标信息,反之,返回关联来源信息。
Sourcepub async fn find_rels(
filter: &RbumRelFilterReq,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<Vec<RbumRelAggResp>>
pub async fn find_rels( filter: &RbumRelFilterReq, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<Vec<RbumRelAggResp>>
Find the relationship aggregation detail information set of the specified condition
查找指定条件的关联聚合信息集合
Sourcepub async fn paginate_simple_rels(
filter: &RbumRelFilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
package_to_info: bool,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<TardisPage<RbumRelBoneResp>>
pub async fn paginate_simple_rels( filter: &RbumRelFilterReq, page_number: u32, page_size: u32, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, package_to_info: bool, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<TardisPage<RbumRelBoneResp>>
Page to get the relationship summary information set of the specified condition
分页查找指定条件的关联概要信息集合
If package_to_info = true, return the relationship target information, otherwise, return the relationship source information.
当 package_to_info = true 时返回关联目标信息,反之,返回关联来源信息。
Sourcepub async fn paginate_rels(
filter: &RbumRelFilterReq,
page_number: u32,
page_size: u32,
desc_sort_by_create: Option<bool>,
desc_sort_by_update: Option<bool>,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<TardisPage<RbumRelAggResp>>
pub async fn paginate_rels( filter: &RbumRelFilterReq, page_number: u32, page_size: u32, desc_sort_by_create: Option<bool>, desc_sort_by_update: Option<bool>, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<TardisPage<RbumRelAggResp>>
Page to get the relationship aggregation detail information set of the specified condition
分页查找指定条件的关联聚合信息集合
Sourcepub async fn find_rel_ids(
find_req: &RbumRelSimpleFindReq,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<Vec<String>>
pub async fn find_rel_ids( find_req: &RbumRelSimpleFindReq, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<Vec<String>>
Find the relationship id set of the specified condition
查找指定条件的关联id集合
Sourcepub async fn check_simple_rel(
find_req: &RbumRelSimpleFindReq,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<bool>
pub async fn check_simple_rel( find_req: &RbumRelSimpleFindReq, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<bool>
Check whether the relationship of the specified simple condition exists
检查指定的简单条件的关联是否存在
Sourcepub async fn check_rel(
check_req: &RbumRelCheckReq,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<bool>
pub async fn check_rel( check_req: &RbumRelCheckReq, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<bool>
Check whether the relationship of the specified condition exists
检查指定的条件的关联是否存在
Sourcepub async fn delete_rel_with_ext(
id: &str,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<u64>
pub async fn delete_rel_with_ext( id: &str, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<u64>
Delete the relationship(Including all conditions)
删除关联关系(包含所有限定条件)
Auto Trait Implementations§
impl Freeze for RbumRelServ
impl RefUnwindSafe for RbumRelServ
impl Send for RbumRelServ
impl Sync for RbumRelServ
impl Unpin for RbumRelServ
impl UnwindSafe for RbumRelServ
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more