Struct RbumRelServ

Source
pub struct RbumRelServ;

Implementations§

Source§

impl RbumRelServ

Source

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.

关联的来源方为资源项

Source

pub async fn add_rel( add_req: &mut RbumRelAggAddReq, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<String>

Add a relationship

添加关联关系

Source

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集合

Source

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

查找指定条件的关联目标概要信息集合

Source

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

查找指定条件的关联聚合信息集合

Source

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集合

Source

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

分页查找指定条件的关联目标概要信息集合

Source

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

分页查找指定条件的关联聚合信息集合

Source

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

统计指定条件的关联记录数

Source

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集合

Source

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

查找指定条件的关联来源概要信息集合

Source

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

查找指定条件的关联聚合信息集合

Source

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集合

Source

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

分页查找指定条件的关联来源概要信息集合

Source

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

分页查找指定条件的关联聚合信息集合

Source

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

统计指定条件的关联记录数

Source

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 时返回关联目标信息,反之,返回关联来源信息。

Source

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

查找指定条件的关联聚合信息集合

Source

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 时返回关联目标信息,反之,返回关联来源信息。

Source

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

分页查找指定条件的关联聚合信息集合

Source

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集合

Source

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

检查指定的简单条件的关联是否存在

Source

pub async fn check_rel( check_req: &RbumRelCheckReq, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<bool>

Check whether the relationship of the specified condition exists

检查指定的条件的关联是否存在

Source

pub async fn delete_rel_with_ext( id: &str, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<u64>

Delete the relationship(Including all conditions)

删除关联关系(包含所有限定条件)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,