serde impl #16

Merged
Quaternions merged 25 commits from serde into master 2026-06-09 17:15:25 +00:00
Owner

Closes #15

Closes #15
Quaternions added 9 commits 2026-06-09 05:42:13 +00:00
Quaternions added 1 commit 2026-06-09 06:00:43 +00:00
Quaternions added 3 commits 2026-06-09 06:23:33 +00:00
Quaternions added 1 commit 2026-06-09 06:24:46 +00:00
Quaternions added 1 commit 2026-06-09 06:27:31 +00:00
Quaternions reviewed 2026-06-09 06:28:41 +00:00
Quaternions reviewed 2026-06-09 06:29:26 +00:00
@@ -17,0 +28,4 @@
println!("serialized = {serialized}");
let round_trip_session: Session<Klondike> = serde_json::from_str(&serialized).unwrap();
let serialized2 = serde_json::to_string(&round_trip_session).unwrap();
assert_eq!(serialized, serialized2);
Author
Owner
  • Move this to klondike test
  • snapshot save game
- [x] Move this to klondike test - [x] snapshot save game
Quaternions marked this conversation as resolved
Quaternions added 3 commits 2026-06-09 06:37:49 +00:00
Quaternions reviewed 2026-06-09 06:40:39 +00:00
@@ -232,0 +253,4 @@
let mut stack = Stack::new();
while let Some(card) = seq.next_element()? {
// TODO: Error
stack.try_push(card).unwrap();
Author
Owner
  • Do this
- [x] Do this
Quaternions marked this conversation as resolved
Quaternions reviewed 2026-06-09 07:11:03 +00:00
@@ -593,0 +731,4 @@
};
map.serialize_field("config", &self.config)?;
map.serialize_field("state", state)?;
map.serialize_field("history", &History(&self.state.history))?;
Author
Owner
  • use a real struct
- [x] use a real struct
Quaternions marked this conversation as resolved
Quaternions added 2 commits 2026-06-09 16:47:16 +00:00
Quaternions added 2 commits 2026-06-09 16:56:11 +00:00
Quaternions added 1 commit 2026-06-09 16:57:32 +00:00
Quaternions added 1 commit 2026-06-09 17:05:33 +00:00
Quaternions added 1 commit 2026-06-09 17:11:33 +00:00
Quaternions merged commit d67645854a into master 2026-06-09 17:15:25 +00:00
Quaternions deleted branch serde 2026-06-09 17:15:25 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Quaternions/card_game#16