1
Fork 0
mirror of https://github.com/Steffo99/todocolors.git synced 2024-11-22 00:04:18 +00:00

Don't store board grouping on the server

This commit is contained in:
Steffo 2023-08-01 17:29:05 +02:00
parent 2f3cc201c7
commit 919c8d6ebf
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -10,8 +10,6 @@ use uuid::Uuid;
pub enum BoardChange {
/// Set the board's title.
Title(String),
/// Set the board's grouping.
Group(BoardGrouping),
/// Create, update, or delete the [`Task`] with the given [`Uuid`].
Task(Uuid, Option<Task>),
}
@ -41,20 +39,6 @@ impl BoardChange {
}
}
/// A possible grouping of a board's tasks.
#[derive(Clone, Debug, Serialize, Deserialize)]
#[non_exhaustive]
pub enum BoardGrouping {
/// Group tasks by icon.
Icon,
/// Group tasks by importance.
Importance,
/// Group tasks by priority.
Priority,
/// Group tasks by status.
Status,
}
/// A task that can be displayed on the board.
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Task {