mirror of
https://github.com/Steffo99/todocolors.git
synced 2024-11-22 08:14:18 +00:00
Perhaps String
ids are easier to handle in Rust than u64
https://redis.io/commands/xadd/
This commit is contained in:
parent
66c8ee9a79
commit
f3ae182d67
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ pub enum ClientOperation {
|
|||
/// Set the board's title.
|
||||
Title(String),
|
||||
/// Create a new [`Task`], or update or delete the task with the given [`Uuid`].
|
||||
Task(Option<u64>, Option<Task>),
|
||||
Task(Option<String>, Option<Task>),
|
||||
}
|
||||
|
||||
/// An operation sent from the server to the clients, and stored on the database.
|
||||
|
@ -17,7 +17,7 @@ pub enum ServerOperation {
|
|||
/// Set the board's title.
|
||||
Title(String),
|
||||
/// Create, update, or delete the [`Task`] with the given [`Uuid`].
|
||||
Task(u64, Option<Task>),
|
||||
Task(String, Option<Task>),
|
||||
}
|
||||
|
||||
impl ClientOperation {
|
||||
|
|
Loading…
Reference in a new issue