1 2 3 4 5 6 7 8 9 10 11
use crate::rubase::ruentity::json_serial::JsonSerializable; //单实例 pub trait JsonEntitySingle: JsonSerializable { fn if_single(&self) -> bool { true } fn init(&mut self) {} fn shutdown(&mut self) {} fn auto_init(&self) -> bool { false } }