rewrite 1
This commit is contained in:
@@ -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,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user