pub trait WorkHourApi {
// Required methods
fn get_work_hour_records(
&self,
request: GetWorkHourRecordsRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<GetWorkHourRecordsResponse>> + Send;
fn create_work_hour_record(
&self,
request: CreateWorkHourRecordRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<CreateWorkHourRecordResponse>> + Send;
fn update_work_hour_record(
&self,
request: UpdateWorkHourRecordRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<UpdateWorkHourRecordResponse>> + Send;
fn delete_work_hour_record(
&self,
request: DeleteWorkHourRecordRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<DeleteWorkHourRecordResponse>> + Send;
}Required Methods§
Sourcefn get_work_hour_records(
&self,
request: GetWorkHourRecordsRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<GetWorkHourRecordsResponse>> + Send
fn get_work_hour_records( &self, request: GetWorkHourRecordsRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<GetWorkHourRecordsResponse>> + Send
获取工作项的工时记录列表 该接口仅在安装使用官方插件-[工时登记]时有效,用于获取指定空间和工作项类型下的指定工作项实例的工时记录详细信息
Sourcefn create_work_hour_record(
&self,
request: CreateWorkHourRecordRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<CreateWorkHourRecordResponse>> + Send
fn create_work_hour_record( &self, request: CreateWorkHourRecordRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<CreateWorkHourRecordResponse>> + Send
创建实际工时 该接口仅在安装使用官方插件-[工时登记]时有效,用于指定空间和工作项类型下的指定工作项实例下添加工时记录信息
Sourcefn update_work_hour_record(
&self,
request: UpdateWorkHourRecordRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<UpdateWorkHourRecordResponse>> + Send
fn update_work_hour_record( &self, request: UpdateWorkHourRecordRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<UpdateWorkHourRecordResponse>> + Send
更新实际工时 该接口仅在安装使用官方插件-[工时登记]时有效,用于更新指定空间和工作项类型下的指定工作项实例的某个操作者的多个工时记录
Sourcefn delete_work_hour_record(
&self,
request: DeleteWorkHourRecordRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<DeleteWorkHourRecordResponse>> + Send
fn delete_work_hour_record( &self, request: DeleteWorkHourRecordRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<DeleteWorkHourRecordResponse>> + 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.