[][src]Struct sudoku_backend::Options

pub struct Options {
    pub database_file: (String, PathBuf),
    pub leaderboard_settings_file: Option<(String, PathBuf)>,
    pub activity_timeout: Duration,
}

Representation of the application's all configurable values.

Fields

File containing the main database.

Parent directory must exist.

Default: "./sudoku-backend.db"

Optional file containing the leaderboard settings.

Parent directory must exist, if specified.

Default: "./leaderboard.toml" if exists, otherwise None.

Amount of time after last request a user is considered to have "left the site".

Default: 10 minutes.

Methods

impl Options
[src]

Parse env-wide command-line arguments into an Options instance

Trait Implementations

impl PartialEq<Options> for Options
[src]

impl Clone for Options
[src]

Performs copy-assignment from source. Read more

impl Eq for Options
[src]

impl Debug for Options
[src]

Auto Trait Implementations

impl Send for Options

impl Sync for Options

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> 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