From fed4c187bd9f9d4678f30c6bbbd77439b87863b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Tue, 7 Nov 2023 15:52:32 +0800 Subject: [PATCH] :art: Update class field custom name : `def` -> `defense` --- src/applications/output/damage_analysis.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/output/damage_analysis.rs b/src/applications/output/damage_analysis.rs index 9e1939f..3e002e0 100644 --- a/src/applications/output/damage_analysis.rs +++ b/src/applications/output/damage_analysis.rs @@ -14,7 +14,7 @@ pub struct PyDamageAnalysis { pub hp: HashMap, #[pyo3(get, set)] pub hp_ratio: HashMap, - #[pyo3(get, set)] + #[pyo3(get, set, name = "defense")] pub def: HashMap, #[pyo3(get, set)] pub def_ratio: HashMap,