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

Perhaps String ids are easier to handle in Rust than u64

https://redis.io/commands/xadd/
This commit is contained in:
Steffo 2023-07-31 12:12:56 +02:00
parent 66c8ee9a79
commit f3ae182d67
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -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 {