pub trait FieldApi {
// Required methods
fn list_fields(
&self,
project_key: &str,
request: ListFieldsRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<ListFieldsResponse>> + Send;
fn create_field(
&self,
project_key: &str,
work_item_type_key: &str,
request: CreateFieldRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<CreateFieldResponse>> + Send;
fn update_field(
&self,
project_key: &str,
work_item_type_key: &str,
request: UpdateFieldRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<UpdateFieldResponse>> + Send;
}Required Methods§
Sourcefn list_fields(
&self,
project_key: &str,
request: ListFieldsRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<ListFieldsResponse>> + Send
fn list_fields( &self, project_key: &str, request: ListFieldsRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<ListFieldsResponse>> + Send
获取指定空间或工作项类型下所有“字段“的基础信息
§Arguments
project_key- 空间id(project_key)或者空间域名(simple_name)request- 请求参数,可指定工作项类型auth- 认证信息
Sourcefn create_field(
&self,
project_key: &str,
work_item_type_key: &str,
request: CreateFieldRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<CreateFieldResponse>> + Send
fn create_field( &self, project_key: &str, work_item_type_key: &str, request: CreateFieldRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<CreateFieldResponse>> + Send
在指定工作项类型下创建一个新的“自定义字段“
§Arguments
project_key- 空间id或域名work_item_type_key- 工作项类型,如 “story”(需求)request- 创建字段的详细信息auth- 认证信息
Sourcefn update_field(
&self,
project_key: &str,
work_item_type_key: &str,
request: UpdateFieldRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<UpdateFieldResponse>> + Send
fn update_field( &self, project_key: &str, work_item_type_key: &str, request: UpdateFieldRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<UpdateFieldResponse>> + Send
更新指定自定义字段的配置信息
§Arguments
project_key- 空间id或域名work_item_type_key- 工作项类型request- 更新字段的详细信息auth- 认证信息
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.