1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! Module containing the task definition.
//!
//! This module defines the core data model for the task management application,
//! encapsulating the `Task` struct, which represents individual tasks in the system.
//! It includes the structure of a task along with methods for creating and managing tasks.
use ;
/// Represents a task in the system.
///
/// The `Task` struct is the core data model for the task management application. It contains
/// the essential information about a task, including its unique identifier, description, creation
/// and update timestamps, and completion status.
///
/// # Fields
///
/// - `id` - A unique identifier for the task.
/// - `description` - A brief description of the task.
/// - `created_at` - The timestamp when the task was created.
/// - `updated_at` - The timestamp when the task was last updated.
/// - `completed` - A boolean indicating whether the task has been completed.