pub struct TodoistWrapper { /* private fields */ }Expand description
A comprehensive wrapper around the Todoist REST API v2
Implementations§
Source§impl TodoistWrapper
impl TodoistWrapper
Sourcepub async fn get_projects(&self) -> TodoistResult<Vec<Project>>
pub async fn get_projects(&self) -> TodoistResult<Vec<Project>>
Get all projects
Sourcepub async fn get_projects_filtered(
&self,
args: &ProjectFilterArgs,
) -> TodoistResult<Vec<Project>>
pub async fn get_projects_filtered( &self, args: &ProjectFilterArgs, ) -> TodoistResult<Vec<Project>>
Get projects with filtering and pagination
Sourcepub async fn get_project(&self, project_id: &str) -> TodoistResult<Project>
pub async fn get_project(&self, project_id: &str) -> TodoistResult<Project>
Get a specific project by ID
Sourcepub async fn create_project(
&self,
args: &CreateProjectArgs,
) -> TodoistResult<Project>
pub async fn create_project( &self, args: &CreateProjectArgs, ) -> TodoistResult<Project>
Create a new project
Sourcepub async fn update_project(
&self,
project_id: &str,
args: &UpdateProjectArgs,
) -> TodoistResult<Project>
pub async fn update_project( &self, project_id: &str, args: &UpdateProjectArgs, ) -> TodoistResult<Project>
Update an existing project
Sourcepub async fn delete_project(&self, project_id: &str) -> TodoistResult<()>
pub async fn delete_project(&self, project_id: &str) -> TodoistResult<()>
Delete a project
Sourcepub async fn get_tasks(&self) -> TodoistResult<Vec<Task>>
pub async fn get_tasks(&self) -> TodoistResult<Vec<Task>>
Get all tasks
Sourcepub async fn get_tasks_for_project(
&self,
project_id: &str,
) -> TodoistResult<Vec<Task>>
pub async fn get_tasks_for_project( &self, project_id: &str, ) -> TodoistResult<Vec<Task>>
Get tasks for a specific project
Sourcepub async fn get_task(&self, task_id: &str) -> TodoistResult<Task>
pub async fn get_task(&self, task_id: &str) -> TodoistResult<Task>
Get a specific task by ID
Sourcepub async fn get_tasks_by_filter(
&self,
args: &TaskFilterArgs,
) -> TodoistResult<Vec<Task>>
pub async fn get_tasks_by_filter( &self, args: &TaskFilterArgs, ) -> TodoistResult<Vec<Task>>
Get tasks by filter query
Sourcepub async fn create_task(&self, args: &CreateTaskArgs) -> TodoistResult<Task>
pub async fn create_task(&self, args: &CreateTaskArgs) -> TodoistResult<Task>
Create a new task
Sourcepub async fn update_task(
&self,
task_id: &str,
args: &UpdateTaskArgs,
) -> TodoistResult<Task>
pub async fn update_task( &self, task_id: &str, args: &UpdateTaskArgs, ) -> TodoistResult<Task>
Update an existing task
Sourcepub async fn complete_task(&self, task_id: &str) -> TodoistResult<()>
pub async fn complete_task(&self, task_id: &str) -> TodoistResult<()>
Complete a task
Sourcepub async fn reopen_task(&self, task_id: &str) -> TodoistResult<()>
pub async fn reopen_task(&self, task_id: &str) -> TodoistResult<()>
Reopen a completed task
Sourcepub async fn delete_task(&self, task_id: &str) -> TodoistResult<()>
pub async fn delete_task(&self, task_id: &str) -> TodoistResult<()>
Delete a task
Sourcepub async fn get_labels(&self) -> TodoistResult<Vec<Label>>
pub async fn get_labels(&self) -> TodoistResult<Vec<Label>>
Get all labels
Sourcepub async fn get_labels_filtered(
&self,
args: &LabelFilterArgs,
) -> TodoistResult<Vec<Label>>
pub async fn get_labels_filtered( &self, args: &LabelFilterArgs, ) -> TodoistResult<Vec<Label>>
Get labels with filtering and pagination
Sourcepub async fn get_label(&self, label_id: &str) -> TodoistResult<Label>
pub async fn get_label(&self, label_id: &str) -> TodoistResult<Label>
Get a specific label by ID
Sourcepub async fn create_label(&self, args: &CreateLabelArgs) -> TodoistResult<Label>
pub async fn create_label(&self, args: &CreateLabelArgs) -> TodoistResult<Label>
Create a new label
Sourcepub async fn update_label(
&self,
label_id: &str,
args: &UpdateLabelArgs,
) -> TodoistResult<Label>
pub async fn update_label( &self, label_id: &str, args: &UpdateLabelArgs, ) -> TodoistResult<Label>
Update an existing label
Sourcepub async fn delete_label(&self, label_id: &str) -> TodoistResult<()>
pub async fn delete_label(&self, label_id: &str) -> TodoistResult<()>
Delete a label
Sourcepub async fn get_sections(&self) -> TodoistResult<Vec<Section>>
pub async fn get_sections(&self) -> TodoistResult<Vec<Section>>
Get all sections
Sourcepub async fn get_sections_filtered(
&self,
args: &SectionFilterArgs,
) -> TodoistResult<Vec<Section>>
pub async fn get_sections_filtered( &self, args: &SectionFilterArgs, ) -> TodoistResult<Vec<Section>>
Get sections with filtering and pagination
Sourcepub async fn get_section(&self, section_id: &str) -> TodoistResult<Section>
pub async fn get_section(&self, section_id: &str) -> TodoistResult<Section>
Get a specific section by ID
Sourcepub async fn create_section(
&self,
args: &CreateSectionArgs,
) -> TodoistResult<Section>
pub async fn create_section( &self, args: &CreateSectionArgs, ) -> TodoistResult<Section>
Create a new section
Sourcepub async fn update_section(
&self,
section_id: &str,
args: &UpdateSectionArgs,
) -> TodoistResult<Section>
pub async fn update_section( &self, section_id: &str, args: &UpdateSectionArgs, ) -> TodoistResult<Section>
Update an existing section
Sourcepub async fn delete_section(&self, section_id: &str) -> TodoistResult<()>
pub async fn delete_section(&self, section_id: &str) -> TodoistResult<()>
Delete a section
Sourcepub async fn get_comments(&self) -> TodoistResult<Vec<Comment>>
pub async fn get_comments(&self) -> TodoistResult<Vec<Comment>>
Get all comments
Sourcepub async fn get_comments_filtered(
&self,
args: &CommentFilterArgs,
) -> TodoistResult<Vec<Comment>>
pub async fn get_comments_filtered( &self, args: &CommentFilterArgs, ) -> TodoistResult<Vec<Comment>>
Get comments with filtering and pagination
Sourcepub async fn get_comment(&self, comment_id: &str) -> TodoistResult<Comment>
pub async fn get_comment(&self, comment_id: &str) -> TodoistResult<Comment>
Get a specific comment by ID
Sourcepub async fn create_comment(
&self,
args: &CreateCommentArgs,
) -> TodoistResult<Comment>
pub async fn create_comment( &self, args: &CreateCommentArgs, ) -> TodoistResult<Comment>
Create a new comment
Sourcepub async fn update_comment(
&self,
comment_id: &str,
args: &UpdateCommentArgs,
) -> TodoistResult<Comment>
pub async fn update_comment( &self, comment_id: &str, args: &UpdateCommentArgs, ) -> TodoistResult<Comment>
Update an existing comment
Sourcepub async fn delete_comment(&self, comment_id: &str) -> TodoistResult<()>
pub async fn delete_comment(&self, comment_id: &str) -> TodoistResult<()>
Delete a comment
Trait Implementations§
Source§impl Clone for TodoistWrapper
impl Clone for TodoistWrapper
Source§fn clone(&self) -> TodoistWrapper
fn clone(&self) -> TodoistWrapper
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more