pub struct Task { /* private fields */ }Expand description
Task:任务资源(v1)
Implementations§
Source§impl Task
impl Task
Sourcepub fn create(&self) -> CreateTaskRequestV1
pub fn create(&self) -> CreateTaskRequestV1
创建新建请求。
Sourcepub fn get(&self, task_id: impl Into<String>) -> GetTaskRequestV1
pub fn get(&self, task_id: impl Into<String>) -> GetTaskRequestV1
创建获取详情请求。
Sourcepub fn update(&self, task_id: impl Into<String>) -> UpdateTaskRequestV1
pub fn update(&self, task_id: impl Into<String>) -> UpdateTaskRequestV1
创建更新请求。
Sourcepub fn delete(&self, task_id: impl Into<String>) -> DeleteTaskRequestV1
pub fn delete(&self, task_id: impl Into<String>) -> DeleteTaskRequestV1
创建删除请求。
Sourcepub fn complete(&self, task_id: impl Into<String>) -> CompleteTaskRequestV1
pub fn complete(&self, task_id: impl Into<String>) -> CompleteTaskRequestV1
创建完成任务请求。
Sourcepub fn uncomplete(&self, task_id: impl Into<String>) -> UncompleteTaskRequestV1
pub fn uncomplete(&self, task_id: impl Into<String>) -> UncompleteTaskRequestV1
创建取消完成请求。
Sourcepub fn list(&self) -> ListTaskRequestV1
pub fn list(&self) -> ListTaskRequestV1
创建列表请求。
Sourcepub fn follower_create(
&self,
task_id: impl Into<String>,
) -> CreateTaskFollowerRequestV1
pub fn follower_create( &self, task_id: impl Into<String>, ) -> CreateTaskFollowerRequestV1
关注者相关方法
Sourcepub fn follower_delete(
&self,
task_id: impl Into<String>,
follower_id: impl Into<String>,
) -> DeleteTaskFollowerRequestV1
pub fn follower_delete( &self, task_id: impl Into<String>, follower_id: impl Into<String>, ) -> DeleteTaskFollowerRequestV1
follower_delete。
Sourcepub fn follower_list(
&self,
task_id: impl Into<String>,
) -> ListTaskFollowerRequestV1
pub fn follower_list( &self, task_id: impl Into<String>, ) -> ListTaskFollowerRequestV1
follower_list。
Sourcepub fn follower_batch_delete(
&self,
task_id: impl Into<String>,
) -> BatchDeleteTaskFollowerRequestV1
pub fn follower_batch_delete( &self, task_id: impl Into<String>, ) -> BatchDeleteTaskFollowerRequestV1
follower_batch_delete。
Sourcepub fn collaborator_create(
&self,
task_id: impl Into<String>,
) -> CreateTaskCollaboratorRequestV1
pub fn collaborator_create( &self, task_id: impl Into<String>, ) -> CreateTaskCollaboratorRequestV1
协作者相关方法
Sourcepub fn collaborator_delete(
&self,
task_id: impl Into<String>,
collaborator_id: impl Into<String>,
) -> DeleteTaskCollaboratorRequestV1
pub fn collaborator_delete( &self, task_id: impl Into<String>, collaborator_id: impl Into<String>, ) -> DeleteTaskCollaboratorRequestV1
collaborator_delete。
Sourcepub fn collaborator_list(
&self,
task_id: impl Into<String>,
) -> ListTaskCollaboratorRequestV1
pub fn collaborator_list( &self, task_id: impl Into<String>, ) -> ListTaskCollaboratorRequestV1
collaborator_list。
Sourcepub fn collaborator_batch_delete(
&self,
task_id: impl Into<String>,
) -> BatchDeleteTaskCollaboratorRequestV1
pub fn collaborator_batch_delete( &self, task_id: impl Into<String>, ) -> BatchDeleteTaskCollaboratorRequestV1
collaborator_batch_delete。
Sourcepub fn reminder_create(
&self,
task_id: impl Into<String>,
) -> CreateTaskReminderRequestV1
pub fn reminder_create( &self, task_id: impl Into<String>, ) -> CreateTaskReminderRequestV1
提醒相关方法
Sourcepub fn reminder_delete(
&self,
task_id: impl Into<String>,
reminder_id: impl Into<String>,
) -> DeleteTaskReminderRequestV1
pub fn reminder_delete( &self, task_id: impl Into<String>, reminder_id: impl Into<String>, ) -> DeleteTaskReminderRequestV1
reminder_delete。
Sourcepub fn reminder_list(
&self,
task_id: impl Into<String>,
) -> ListTaskReminderRequestV1
pub fn reminder_list( &self, task_id: impl Into<String>, ) -> ListTaskReminderRequestV1
reminder_list。
Sourcepub fn comment_create(
&self,
task_id: impl Into<String>,
) -> CreateTaskCommentRequestV1
pub fn comment_create( &self, task_id: impl Into<String>, ) -> CreateTaskCommentRequestV1
评论相关方法
Sourcepub fn comment_get(
&self,
task_id: impl Into<String>,
comment_id: impl Into<String>,
) -> GetTaskCommentRequestV1
pub fn comment_get( &self, task_id: impl Into<String>, comment_id: impl Into<String>, ) -> GetTaskCommentRequestV1
comment_get。
Sourcepub fn comment_update(
&self,
task_id: impl Into<String>,
comment_id: impl Into<String>,
) -> UpdateTaskCommentRequestV1
pub fn comment_update( &self, task_id: impl Into<String>, comment_id: impl Into<String>, ) -> UpdateTaskCommentRequestV1
comment_update。
Sourcepub fn comment_delete(
&self,
task_id: impl Into<String>,
comment_id: impl Into<String>,
) -> DeleteTaskCommentRequestV1
pub fn comment_delete( &self, task_id: impl Into<String>, comment_id: impl Into<String>, ) -> DeleteTaskCommentRequestV1
comment_delete。
Sourcepub fn comment_list(
&self,
task_id: impl Into<String>,
) -> ListTaskCommentRequestV1
pub fn comment_list( &self, task_id: impl Into<String>, ) -> ListTaskCommentRequestV1
comment_list。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Task
impl !RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnsafeUnpin for Task
impl !UnwindSafe for Task
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more