diff options
| author | Jomar Milan <jomarm@jomarm.com> | 2026-06-07 19:31:19 -0700 |
|---|---|---|
| committer | Jomar Milan <jomarm@jomarm.com> | 2026-06-07 19:31:19 -0700 |
| commit | a1746f7c30519abc2f3a293a8f02cc0b2015804d (patch) | |
| tree | 6677ca5c1d235ecd0091fb80882d606f7583d83a /src/session.rs | |
| parent | ec2097b11f93ad968e171c0e961e0e06652ce44b (diff) | |
Respond with hand data after handshake
Diffstat (limited to 'src/session.rs')
| -rw-r--r-- | src/session.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/session.rs b/src/session.rs index c105af3..06ec483 100644 --- a/src/session.rs +++ b/src/session.rs @@ -1,4 +1,4 @@ -use serde::Deserialize; +use serde::{Deserialize, Serialize}; use std::collections::HashMap; pub struct Session { @@ -9,7 +9,7 @@ pub struct Session { // TODO: The values on these variants will be used in the future and there will be more variants. // Once this happens, the dead_code lint should no longer be suppressed. -#[derive(Deserialize)] +#[derive(Clone, Serialize, Deserialize)] #[allow(dead_code)] pub enum HandObject { CustomDeck(CustomDeck), @@ -17,7 +17,7 @@ pub enum HandObject { // TODO: These fields will be used in the future. When they are, the dead_code lint should no longer // be suppressed. -#[derive(Deserialize)] +#[derive(Clone, Serialize, Deserialize)] #[allow(dead_code)] pub struct CustomDeck { /// The path/URL of the face cardsheet. |
