pub struct RbumSetItemServ;Implementations§
Source§impl RbumSetItemServ
impl RbumSetItemServ
Sourcepub async fn find_set_paths(
rbum_item_id: &str,
rbum_set_id: &str,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<Vec<Vec<RbumSetPathResp>>>
pub async fn find_set_paths( rbum_item_id: &str, rbum_set_id: &str, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<Vec<Vec<RbumSetPathResp>>>
Fetch all the paths of the resource item in the resource set
获取资源项在某一资源集上的所有路径
Return format:
-
The first-level array is all the paths corresponding to the resource item (a resource item can hang multiple paths)
-
The second-level data is each node (such as the path is l1/l2/l3, then the corresponding node is l1, l2, l3)
-
第一层数组为资源项对应的所有路径(一个资源项可以挂多个路径)
-
第二层数据为每个节点(比如路径为 l1/l2/l3, 那么对应的节点为 l1, l2, l3)
[
[
{
"id": "Node Id",
"name": "Node Name"
}
]
]Sourcepub async fn check_a_is_parent_of_b(
rbum_item_a_id: &str,
rbum_item_b_id: &str,
rbum_set_id: &str,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<bool>
pub async fn check_a_is_parent_of_b( rbum_item_a_id: &str, rbum_item_b_id: &str, rbum_set_id: &str, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<bool>
Check whether resource item a is the parent of resource item b in the specified resource set
检查在指定资源集中资源项a是否是资源项b的父级
Sourcepub async fn check_a_is_sibling_of_b(
rbum_item_a_id: &str,
rbum_item_b_id: &str,
rbum_set_id: &str,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<bool>
pub async fn check_a_is_sibling_of_b( rbum_item_a_id: &str, rbum_item_b_id: &str, rbum_set_id: &str, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<bool>
Check whether resource item a is the sibling of resource item b in the specified resource set
检查在指定资源集中资源项a是否是资源项b的兄弟级
Sourcepub async fn check_a_is_parent_or_sibling_of_b(
rbum_item_a_id: &str,
rbum_item_b_id: &str,
rbum_set_id: &str,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<bool>
pub async fn check_a_is_parent_or_sibling_of_b( rbum_item_a_id: &str, rbum_item_b_id: &str, rbum_set_id: &str, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<bool>
Check whether resource item a is the parent or sibling of resource item b in the specified resource set
检查在指定资源集中资源项a是否是资源项b的父级或兄弟级
Auto Trait Implementations§
impl Freeze for RbumSetItemServ
impl RefUnwindSafe for RbumSetItemServ
impl Send for RbumSetItemServ
impl Sync for RbumSetItemServ
impl Unpin for RbumSetItemServ
impl UnwindSafe for RbumSetItemServ
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