feat: add serde and initial structs for deserialisation

This commit is contained in:
0xalivecow 2024-10-18 16:42:56 +02:00
parent d4c5758ed6
commit 4f5612df47
No known key found for this signature in database
4 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1 @@
mod parse;

20
src/utils/parse.rs Normal file
View file

@ -0,0 +1,20 @@
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
pub struct Testcases {
testcase: Vec<Testcase>,
}
#[derive(Serialize, Deserialize)]
pub struct Testcase {
uuid: String,
action: String,
arguments: Vec<Argument>,
}
#[derive(Serialize, Deserialize)]
pub struct Argument {
uuid: String,
action: String,
arguments: Vec<Argument>,
}