[][src]Struct sudoku_backend::ops::setup::LeaderboardConfig

pub struct LeaderboardConfig {
    pub count: usize,
    pub ordering: SolutionOrdering,
}

Configuration of a leaderboard request. Refer to doc/check.rs for more details.

Fields

How many entries to return

How to order the returned entries

Methods

impl LeaderboardConfig
[src]

Default no-spec return config for solutions.

Default maximal unexceedable return config for solutions.

Default no-spec return config for players.

Default maximal unexceedable return config for players.

Trait Implementations

impl PartialEq<LeaderboardConfig> for LeaderboardConfig
[src]

impl Clone for LeaderboardConfig
[src]

Performs copy-assignment from source. Read more

impl Copy for LeaderboardConfig
[src]

impl Ord for LeaderboardConfig
[src]

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Eq for LeaderboardConfig
[src]

impl PartialOrd<LeaderboardConfig> for LeaderboardConfig
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Debug for LeaderboardConfig
[src]

impl Hash for LeaderboardConfig
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Serialize for LeaderboardConfig
[src]

impl<'de> Deserialize<'de> for LeaderboardConfig
[src]

Auto Trait Implementations

impl Send for LeaderboardConfig

impl Sync for LeaderboardConfig

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Typeable for T where
    T: Any
[src]

Get the TypeId of this object.

impl<T> IntoSql for T
[src]

Convert self to an expression for Diesel's query builder. Read more

Convert &self to an expression for Diesel's query builder. Read more