pub struct UserRating {
pub level: i32,
pub is_maximum_level_reached: bool,
pub rating: i64,
pub current_level_rating: i64,
pub next_level_rating: i64,
}Expand description
Contains description of user rating
Fields§
§level: i32The level of the user; may be negative
is_maximum_level_reached: boolTrue, if the maximum level is reached
rating: i64Numerical value of the rating
current_level_rating: i64The rating required for the current level
next_level_rating: i64The rating required for the next level; 0 if the maximum level is reached
Trait Implementations§
Source§impl Clone for UserRating
impl Clone for UserRating
Source§fn clone(&self) -> UserRating
fn clone(&self) -> UserRating
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserRating
impl Debug for UserRating
Source§impl Default for UserRating
impl Default for UserRating
Source§fn default() -> UserRating
fn default() -> UserRating
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserRating
impl<'de> Deserialize<'de> for UserRating
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 for UserRating
impl PartialEq for UserRating
Source§impl Serialize for UserRating
impl Serialize for UserRating
impl StructuralPartialEq for UserRating
Auto Trait Implementations§
impl Freeze for UserRating
impl RefUnwindSafe for UserRating
impl Send for UserRating
impl Sync for UserRating
impl Unpin for UserRating
impl UnsafeUnpin for UserRating
impl UnwindSafe for UserRating
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