ProjectRelationApi

Trait ProjectRelationApi 

Source
pub trait ProjectRelationApi {
    // Required methods
    fn get_project_relation_rules(
        &self,
        request: GetProjectRelationRulesRequest,
        auth: AuthType,
    ) -> impl Future<Output = ApiResult<GetProjectRelationRulesResponse>> + Send;
    fn get_relation_instances(
        &self,
        request: GetRelationInstancesRequest,
        auth: AuthType,
    ) -> impl Future<Output = ApiResult<GetRelationInstancesResponse>> + Send;
    fn batch_bind_relation(
        &self,
        request: BatchBindRelationRequest,
        auth: AuthType,
    ) -> impl Future<Output = ApiResult<BatchBindRelationResponse>> + Send;
    fn unbind_relation(
        &self,
        request: UnbindRelationRequest,
        auth: AuthType,
    ) -> impl Future<Output = ApiResult<UnbindRelationResponse>> + Send;
}

Required Methods§

Source

fn get_project_relation_rules( &self, request: GetProjectRelationRulesRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<GetProjectRelationRulesResponse>> + Send

获取空间关联规则列表 该接口用于获取指定空间下配置的空间关联规则列表,对应的平台功能介绍可参考空间关联规则配置

Source

fn get_relation_instances( &self, request: GetRelationInstancesRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<GetRelationInstancesResponse>> + Send

获取空间关联下的关联工作项实例列表 该接口用于获取与指定工作项实例有空间关联的工作项实例列表

Source

fn batch_bind_relation( &self, request: BatchBindRelationRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<BatchBindRelationResponse>> + Send

批量绑定工作项实例 该接口用于将指定工作项实例和传入的工作项实例列表建立空间关联绑定关系

Source

fn unbind_relation( &self, request: UnbindRelationRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<UnbindRelationResponse>> + Send

解绑空间关联的关联工作项实例 该接口用于将指定工作项实例和传入的工作项实例解除空间关联绑定关系

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.

Implementors§