Skip to main content

GDLevelRatings

Struct GDLevelRatings 

Source
pub struct GDLevelRatings {
Show 13 fields pub rating: DifficultyRating, pub rating_sum: i32, pub downloads: i32, pub like_rating: i32, pub dislikes: i32, pub stars: i32, pub requested_stars: Option<i32>, pub feature_score: Option<i32>, pub epic_rating: EpicRating, pub difficulty: i32, pub is_demon: bool, pub demon_type: Option<DemonType>, pub is_auto: bool,
}
Expand description

Rating data about a level (e.g. star rating, likes, downloads)

Fields§

§rating: DifficultyRating

Difficulty rating of this level. See DifficultyRating. Irrelevant if self.is_demon is true. In that case, self.demon_type determines the difficulty.

Internal key: k9

§rating_sum: i32

Internal key: k10

§downloads: i32

Internal key: k11

§like_rating: i32

Internal key: k22

§dislikes: i32

Number of dislikes the level has (unused).

Internal key: k24

§stars: i32

Amount of stars you get for beating the level.

Internal key: k26

§requested_stars: Option<i32>

Internal key: k66

§feature_score: Option<i32>

Internal key: k27

§epic_rating: EpicRating

See EpicRating.

Internal key: k75

§difficulty: i32

Internal key: k7

§is_demon: bool

Internal key: k25

§demon_type: Option<DemonType>

See DemonType.

Internal key: k76

§is_auto: bool

Internal key: k33

Trait Implementations§

Source§

impl Clone for GDLevelRatings

Source§

fn clone(&self) -> GDLevelRatings

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GDLevelRatings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for GDLevelRatings

Source§

fn default() -> GDLevelRatings

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.