[][src]Struct libosu::OsuDB

pub struct OsuDB {
    pub version: u32,
    pub folder_count: u32,
    pub account_unlocked: bool,
    pub unlocked_date: u64,
    pub player_name: String,
    pub beatmap_count: u32,
    pub beatmaps: Vec<OsuDBBeatmap>,
    pub permissions: u8,
}

osu!.db object

Fields

version: u32

osu! game mode that this replay was recorded for

folder_count: u32

The amount of folders?

account_unlocked: bool

If the account is unlocked, aka not banned or locked.

unlocked_date: u64

When the account will be unlocked

This is value is measured in windows ticks (https://docs.microsoft.com/en-us/dotnet/api/system.datetime.ticks?redirectedfrom=MSDN&view=net-5.0#System_DateTime_Ticks) It counts the number of ticks from 12:00:00 midnight, January 1, 0001 to the time this replay was created

player_name: String

The player's username

beatmap_count: u32

The amount of beatmaps cached

beatmaps: Vec<OsuDBBeatmap>

The cached beatmaps

permissions: u8

The permissions of the user

Implementations

impl OsuDB[src]

pub fn parse(mut reader: impl BufRead) -> Result<OsuDB, Error>[src]

Parse the osu!.db data from a reader.

Trait Implementations

impl Clone for OsuDB[src]

impl Debug for OsuDB[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.