Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
struct Inventory {
slot1: Slot,
slot2: Slot,
slot3: Slot
struct User {
name: Field,
inventory: Inventory
impl User {
fn new() {
return User {
name: Field {key: "user:name"},
inventory: Inventory {
key: "user:inventory",
slot1: {key: "user:inventory:slot1"},
slot2: {key: "user:inventory:slot2"},
slot3: {key: "user:inventory:slot3"},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.