pub enum Converter {
Dummy,
Feat,
}
Expand description
Converters to process 5e.tools data into Reroll data.
Variants§
Dummy
Converter sample for testing that returns the input data unmodified.
Feat
Converter to process feats from 5e.tools into Reroll data.
Implementations§
source§impl Converter
impl Converter
Implement Converter methods to handle data processing.
sourcepub fn convert_file(&self, input_path: &Path, output_path: &Path) -> Result<()>
pub fn convert_file(&self, input_path: &Path, output_path: &Path) -> Result<()>
Convert a JSON file containing an array of 5e.tools entries to the Reroll equivalent.
sourcepub fn convert_string(&self, input: &str) -> Result<String>
pub fn convert_string(&self, input: &str) -> Result<String>
Convert a serialised JSON array of 5e.tools entries to the Reroll equivalent.
sourcepub fn convert_json(&self, input: &JsonValue) -> Result<JsonValue>
pub fn convert_json(&self, input: &JsonValue) -> Result<JsonValue>
Convert a JsonValue array of 5e.tools entries to the Reroll equivalent.