diff options
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. |
