MCPcopy Create free account
hub / github.com/RustOtomeLab/RustEng / new

Method new

src/config/save_load.rs:17–29  ·  view source on GitHub ↗
(
        script: String,
        block_index: usize,
        explain: String,
        image_path: String,
    )

Source from the content-addressed store, hash-verified

15}
16
17#[derive(Debug, Deserialize, Serialize)]
18pub(crate) struct SaveDataWrapper {
19 save_data: Vec<SaveData>,
20}
21
22impl SaveDataWrapper {
23 pub(crate) fn new(save_data: Vec<SaveData>) -> SaveDataWrapper {
24 SaveDataWrapper { save_data }
25 }
26}
27
28impl SaveData {
29 pub(crate) fn new(
30 script: String,
31 block_index: usize,
32 explain: String,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected