ViewApi

Trait ViewApi 

Source
pub trait ViewApi {
    // Required methods
    fn get_view_list(
        &self,
        request: GetViewListRequest,
        auth: AuthType,
    ) -> impl Future<Output = ApiResult<GetViewListResponse>> + Send;
    fn get_fix_view(
        &self,
        request: GetFixViewRequest,
        auth: AuthType,
    ) -> impl Future<Output = ApiResult<GetFixViewResponse>> + Send;
    fn get_panoramic_view(
        &self,
        request: GetPanoramicViewRequest,
        auth: AuthType,
    ) -> impl Future<Output = ApiResult<GetPanoramicViewResponse>> + Send;
    fn create_fix_view(
        &self,
        request: CreateFixViewRequest,
        auth: AuthType,
    ) -> impl Future<Output = ApiResult<CreateFixViewResponse>> + Send;
    fn update_fix_view(
        &self,
        request: UpdateFixViewRequest,
        auth: AuthType,
    ) -> impl Future<Output = ApiResult<UpdateFixViewResponse>> + Send;
    fn create_condition_view(
        &self,
        request: CreateConditionViewRequest,
        auth: AuthType,
    ) -> impl Future<Output = ApiResult<CreateConditionViewResponse>> + Send;
    fn update_condition_view(
        &self,
        request: UpdateConditionViewRequest,
        auth: AuthType,
    ) -> impl Future<Output = ApiResult<UpdateConditionViewResponse>> + Send;
    fn delete_view(
        &self,
        request: DeleteViewRequest,
        auth: AuthType,
    ) -> impl Future<Output = ApiResult<DeleteViewResponse>> + Send;
}

Required Methods§

Source

fn get_view_list( &self, request: GetViewListRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<GetViewListResponse>> + Send

获取视图列表及配置信息 该接口用于在指定空间,搜索符合请求参数中传入条件的视图列表及相关配置信息

Source

fn get_fix_view( &self, request: GetFixViewRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<GetFixViewResponse>> + Send

获取视图下工作项列表 该接口用于获取指定视图中的所有工作项实例列表

Source

fn get_panoramic_view( &self, request: GetPanoramicViewRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<GetPanoramicViewResponse>> + Send

获取视图下工作项列表(全景视图) 该接口用于获取指定全景视图中的所有工作项实例列表和详情信息

Source

fn create_fix_view( &self, request: CreateFixViewRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<CreateFixViewResponse>> + Send

创建固定视图 该接口用于在指定空间和工作项类型下新增一个固定视图

Source

fn update_fix_view( &self, request: UpdateFixViewRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<UpdateFixViewResponse>> + Send

更新固定视图 该接口用于添加或删除固定视图中的工作项

Source

fn create_condition_view( &self, request: CreateConditionViewRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<CreateConditionViewResponse>> + Send

创建条件视图 该接口用于在指定空间和工作项类型下新增一个条件视图

Source

fn update_condition_view( &self, request: UpdateConditionViewRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<UpdateConditionViewResponse>> + Send

更新条件视图 该接口用于对一个指定条件视图更新其筛选条件和协作者信息

Source

fn delete_view( &self, request: DeleteViewRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<DeleteViewResponse>> + 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§