[][src]Crate artifact_serde

artifact_serde

This is a small crate to handle deseralizing and potentially serializing Artifact Deck Codes.
See this link for reference implementation: link

Structs

Card
CardCard
CardSet
CardSetJson
Deck
DeserializedCard
DeserializedDeck
DeserializedHero
HeroCard
Image
Reference
SetInfo
TranslatedText

Functions

decode

Takes in an Artifact Deck Code as a &str and returns a DeserializedDeck matching the structure refer to deck_decoder.php for reference implementation and expected structure here

json_to_deck_hashmap

Takes in a vector of JSON formatted &str and attempts to coerce them into CardSetJson, the JSON should take the form mentioned here or: