diff --git a/src/utils.rs b/src/utils.rs new file mode 100644 index 0000000..e82d417 --- /dev/null +++ b/src/utils.rs @@ -0,0 +1,15 @@ +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, Serialize, Deserialize)] +pub enum ProblemType { + VariableNotFound, + FileNotFound, + HeaderSyntaxError, +} + +#[derive(Clone, Debug, Serialize, Deserialize)] +pub struct Problem { + //pub code: u32, + pub problem_type: ProblemType, + pub problem_msg: String, +}