pub struct UserLevel {
pub current: u32,
pub progress: u32,
}
Expand description
Level progression of a User
.
Fields§
§current: u32
The current level
progress: u32
Percentage to the next level between 0.0
and 100.0
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for UserLevel
impl<'de> Deserialize<'de> for UserLevel
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
source§impl PartialEq<UserLevel> for UserLevel
impl PartialEq<UserLevel> for UserLevel
impl Copy for UserLevel
impl Eq for UserLevel
impl StructuralEq for UserLevel
impl StructuralPartialEq for UserLevel
Auto Trait Implementations§
impl RefUnwindSafe for UserLevel
impl Send for UserLevel
impl Sync for UserLevel
impl Unpin for UserLevel
impl UnwindSafe for UserLevel
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.