mirror of
https://git.suyu.dev/suyu/yuzu-games-parser
synced 2024-11-21 14:29:03 -07:00
Rename title_id to titleId as requested
This commit is contained in:
parent
991c8d737c
commit
25cc7facf1
1 changed files with 7 additions and 5 deletions
|
@ -1,10 +1,11 @@
|
|||
use crate::{TestCase, OS};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use crate::{OS, TestCase};
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct Game {
|
||||
pub(crate) name: String,
|
||||
pub(crate) description: String,
|
||||
#[serde(rename = "titleId")]
|
||||
pub(crate) title_id: String,
|
||||
pub(crate) img: String,
|
||||
pub(crate) tests: Vec<Test>,
|
||||
|
@ -33,7 +34,7 @@ pub fn testcase_to_test(case: &TestCase) -> Test {
|
|||
3 => 3,
|
||||
4 => 2,
|
||||
5 => 1,
|
||||
_ => unreachable!()
|
||||
_ => unreachable!(),
|
||||
},
|
||||
details: None,
|
||||
test_date: case.date.clone(),
|
||||
|
@ -42,8 +43,9 @@ pub fn testcase_to_test(case: &TestCase) -> Test {
|
|||
version: case.version.clone(),
|
||||
os: match case.os {
|
||||
OS::Windows => "Windows",
|
||||
OS::Linux => "Linux"
|
||||
}.to_string(),
|
||||
OS::Linux => "Linux",
|
||||
}
|
||||
.to_string(),
|
||||
from_yuzu: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue