pub enum SyncCommandType {
Show 43 variants
ItemAdd,
ItemUpdate,
ItemMove,
ItemDelete,
ItemClose,
ItemComplete,
ItemUncomplete,
ItemArchive,
ItemUnarchive,
ItemReorder,
ItemUpdateDayOrders,
ItemUpdateDateCompleted,
ProjectAdd,
ProjectUpdate,
ProjectMove,
ProjectDelete,
ProjectArchive,
ProjectUnarchive,
ProjectReorder,
SectionAdd,
SectionUpdate,
SectionMove,
SectionDelete,
SectionArchive,
SectionUnarchive,
SectionReorder,
LabelAdd,
LabelUpdate,
LabelDelete,
LabelUpdateOrders,
NoteAdd,
NoteUpdate,
NoteDelete,
ProjectNoteAdd,
ProjectNoteUpdate,
ProjectNoteDelete,
ReminderAdd,
ReminderUpdate,
ReminderDelete,
FilterAdd,
FilterUpdate,
FilterDelete,
FilterUpdateOrders,
}Expand description
Valid command types for the Todoist Sync API.
This enum provides type-safe command types that serialize to the snake_case
format expected by the API (e.g., ItemAdd → "item_add").
See: https://developer.todoist.com/sync/v9/#sync-commands
§Examples
use todoist_api_rs::sync::SyncCommandType;
let cmd_type = SyncCommandType::ItemAdd;
let json = serde_json::to_string(&cmd_type).unwrap();
assert_eq!(json, "\"item_add\"");Variants§
ItemAdd
Add a new task/item
ItemUpdate
Update an existing task/item
ItemMove
Move a task to a different project or section
ItemDelete
Delete a task/item
ItemClose
Complete/close a task
ItemComplete
Complete a task with a specific completion timestamp
ItemUncomplete
Reopen a completed task
ItemArchive
Archive a task
ItemUnarchive
Unarchive a task
ItemReorder
Reorder tasks within a project/section
ItemUpdateDayOrders
Update day orders for tasks
ItemUpdateDateCompleted
Update the completion date of a task
ProjectAdd
Add a new project
ProjectUpdate
Update an existing project
ProjectMove
Move a project (change parent)
ProjectDelete
Delete a project
ProjectArchive
Archive a project
ProjectUnarchive
Unarchive a project
ProjectReorder
Reorder projects
SectionAdd
Add a new section
SectionUpdate
Update an existing section
SectionMove
Move a section to a different project
SectionDelete
Delete a section
SectionArchive
Archive a section
SectionUnarchive
Unarchive a section
SectionReorder
Reorder sections within a project
LabelAdd
Add a new label
LabelUpdate
Update an existing label
LabelDelete
Delete a label
LabelUpdateOrders
Update label ordering
NoteAdd
Add a note/comment to a task
NoteUpdate
Update an existing note/comment
NoteDelete
Delete a note/comment
ProjectNoteAdd
Add a note to a project
ProjectNoteUpdate
Update an existing project note
ProjectNoteDelete
Delete a project note
ReminderAdd
Add a reminder to a task
ReminderUpdate
Update an existing reminder
ReminderDelete
Delete a reminder
FilterAdd
Add a custom filter
FilterUpdate
Update an existing filter
FilterDelete
Delete a filter
FilterUpdateOrders
Update filter ordering
Trait Implementations§
Source§impl Clone for SyncCommandType
impl Clone for SyncCommandType
Source§fn clone(&self) -> SyncCommandType
fn clone(&self) -> SyncCommandType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more