livesplit-core 0.13.0

livesplit-core is a library that provides a lot of functionality for creating a speedrun timer.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::Field;
use crate::platform::prelude::*;
use serde::{Deserialize, Serialize};

/// A generic description of the settings available and their current values.
#[derive(Default, Serialize, Deserialize)]
pub struct SettingsDescription {
    /// All of the different settings that are available and their current
    /// values.
    pub fields: Vec<Field>,
}

impl SettingsDescription {
    /// Creates a new Settings Description with the settings provided.
    pub fn with_fields(fields: Vec<Field>) -> Self {
        Self { fields }
    }
}