otx_pool_config/
script.rs

1use serde::Deserialize;
2
3#[derive(Deserialize, Default, Clone, Debug)]
4pub struct ScriptConfigItem {
5    script_name: String,
6    script: String,
7    cell_dep: String,
8}
9
10impl ScriptConfigItem {
11    pub fn new(script_name: &str, script: &str, cell_dep: &str) -> Self {
12        ScriptConfigItem {
13            script_name: script_name.to_string(),
14            script: script.to_string(),
15            cell_dep: cell_dep.to_string(),
16        }
17    }
18
19    pub fn get_script_name(&self) -> &str {
20        &self.script_name
21    }
22
23    pub fn get_script(&self) -> &str {
24        &self.script
25    }
26
27    pub fn get_cell_dep(&self) -> &str {
28        &self.cell_dep
29    }
30}