pub struct Task { /* private fields */ }Expand description
Task:任务资源(v1)
Implementations§
Source§impl Task
impl Task
pub fn new(config: Arc<Config>) -> Self
pub fn create(&self) -> CreateTaskRequestV1
pub fn get(&self, task_id: impl Into<String>) -> GetTaskRequestV1
pub fn update(&self, task_id: impl Into<String>) -> UpdateTaskRequestV1
pub fn delete(&self, task_id: impl Into<String>) -> DeleteTaskRequestV1
pub fn complete(&self, task_id: impl Into<String>) -> CompleteTaskRequestV1
pub fn uncomplete(&self, task_id: impl Into<String>) -> UncompleteTaskRequestV1
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
关注者相关方法
pub fn follower_delete( &self, task_id: impl Into<String>, follower_id: impl Into<String>, ) -> DeleteTaskFollowerRequestV1
pub fn follower_list( &self, task_id: impl Into<String>, ) -> ListTaskFollowerRequestV1
pub fn follower_batch_delete( &self, task_id: impl Into<String>, ) -> BatchDeleteTaskFollowerRequestV1
Sourcepub fn collaborator_create(
&self,
task_id: impl Into<String>,
) -> CreateTaskCollaboratorRequestV1
pub fn collaborator_create( &self, task_id: impl Into<String>, ) -> CreateTaskCollaboratorRequestV1
协作者相关方法
pub fn collaborator_delete( &self, task_id: impl Into<String>, collaborator_id: impl Into<String>, ) -> DeleteTaskCollaboratorRequestV1
pub fn collaborator_list( &self, task_id: impl Into<String>, ) -> ListTaskCollaboratorRequestV1
pub fn collaborator_batch_delete( &self, task_id: impl Into<String>, ) -> BatchDeleteTaskCollaboratorRequestV1
Sourcepub fn reminder_create(
&self,
task_id: impl Into<String>,
) -> CreateTaskReminderRequestV1
pub fn reminder_create( &self, task_id: impl Into<String>, ) -> CreateTaskReminderRequestV1
提醒相关方法
pub fn reminder_delete( &self, task_id: impl Into<String>, reminder_id: impl Into<String>, ) -> DeleteTaskReminderRequestV1
pub fn reminder_list( &self, task_id: impl Into<String>, ) -> ListTaskReminderRequestV1
Sourcepub fn comment_create(
&self,
task_id: impl Into<String>,
) -> CreateTaskCommentRequestV1
pub fn comment_create( &self, task_id: impl Into<String>, ) -> CreateTaskCommentRequestV1
评论相关方法
pub fn comment_get( &self, task_id: impl Into<String>, comment_id: impl Into<String>, ) -> GetTaskCommentRequestV1
pub fn comment_update( &self, task_id: impl Into<String>, comment_id: impl Into<String>, ) -> UpdateTaskCommentRequestV1
pub fn comment_delete( &self, task_id: impl Into<String>, comment_id: impl Into<String>, ) -> DeleteTaskCommentRequestV1
pub fn comment_list( &self, task_id: impl Into<String>, ) -> ListTaskCommentRequestV1
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