Expand description
Data models for Ratado.
This module contains all the core data structures used throughout the application. These models represent the domain entities and are designed to be serializable for database storage.
§Key Types
Task- A task item with title, due date, priority, etc.Project- A project for organizing tasksPriority- Task priority levels (Low, Medium, High, Urgent)TaskStatus- Task states (Pending, InProgress, Completed, Archived)Filter- Criteria for filtering task listsSortOrder- Options for sorting task lists
§Examples
use ratado::models::{Task, Priority, Filter};
// Create a new task
let mut task = Task::new("Buy groceries");
task.priority = Priority::High;
// Filter tasks
let tasks = vec![task];
let high_priority = Filter::ByPriority(Priority::High).apply(&tasks);Structs§
Enums§
- Filter
- Filter criteria for tasks.
- Priority
- Task priority levels.
- Sort
Order - Sort order options for task lists.
- Task
Status - Task status states.