Struct osu_db::listing::Listing[][src]

pub struct Listing {
    pub version: u32,
    pub folder_count: u32,
    pub unban_date: Option<DateTime<Utc>>,
    pub player_name: Option<String>,
    pub beatmaps: Vec<Beatmap>,
    pub user_permissions: u32,
}
Expand description

A structure representing the osu!.db binary database. This database contains pre-processed data and settings for all available osu! beatmaps.

Fields

version: u32

The osu!.db version number. This is a decimal number in the form YYYYMMDD (eg. 20150203).

folder_count: u32

The amount of folders within the “Songs” directory. Probably for quick checking of changes within the directory.

unban_date: Option<DateTime<Utc>>

Whether the account is locked/banned, and when will be it be unbanned.

player_name: Option<String>

Self-explanatory.

beatmaps: Vec<Beatmap>

All stored beatmaps and the information stored about them. The main bulk of information.

user_permissions: u32

User permissions (0 = None, 1 = Normal, 2 = Moderator, 4 = Supporter, 8 = Friend, 16 = peppy, 32 = World Cup staff)

Implementations

Parse a listing from the osu!.db database file.

Write the listing to an arbitrary writer.

Similar to to_writer but writes the listing to a file (ie. osu!.db).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

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

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.