From a1746f7c30519abc2f3a293a8f02cc0b2015804d Mon Sep 17 00:00:00 2001 From: Jomar Milan Date: Sun, 7 Jun 2026 19:31:19 -0700 Subject: Respond with hand data after handshake --- src/session.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/session.rs') 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. -- cgit v1.2.3