pub struct LevelInfo {
pub current_level: i32,
pub current_min: i32,
pub current_exp: i32,
pub next_exp: NextExp,
}Expand description
等级信息
Fields§
§current_level: i32当前等级 0-6
current_min: i32§current_exp: i32§next_exp: NextExp使用自定义反序列化函数处理 next_exp
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LevelInfo
impl<'de> Deserialize<'de> for LevelInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LevelInfo
impl RefUnwindSafe for LevelInfo
impl Send for LevelInfo
impl Sync for LevelInfo
impl Unpin for LevelInfo
impl UnwindSafe for LevelInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more