pub struct BmsTableHeader {
pub name: String,
pub symbol: String,
pub data_url: String,
pub tag: Option<String>,
pub mode: Option<String>,
pub course: CourseGroup,
pub level_order: Vec<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
BMS header information.
Strictly parses common fields and preserves unrecognized fields in extra for forward compatibility.
Fields§
§name: StringTable name, e.g. “Satellite”
symbol: StringTable symbol, e.g. “sl”
data_url: StringURL of chart data file (preserves the original string from header JSON)
tag: Option<String>Tag label text; falls back to symbol when absent
mode: Option<String>Play mode hint; same semantics as bmson’s mode_hint
course: CourseGroupCourse information, preserving the original JSON nesting shape.
Supports flat arrays ("course": [{...}]) and arbitrarily nested arrays
("course": [[{...}]], "course": [[{...}], [{...}]], etc.).
Deserialized as a CourseGroup tree.
level_order: Vec<String>Difficulty level order containing numbers and strings
extra: BTreeMap<String, Value>Extra data (unrecognized fields from header JSON)
Implementations§
Trait Implementations§
Source§impl Clone for BmsTableHeader
impl Clone for BmsTableHeader
Source§fn clone(&self) -> BmsTableHeader
fn clone(&self) -> BmsTableHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BmsTableHeader
impl Debug for BmsTableHeader
Source§impl<'de> Deserialize<'de> for BmsTableHeader
impl<'de> Deserialize<'de> for BmsTableHeader
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BmsTableHeader
impl PartialEq for BmsTableHeader
Source§fn eq(&self, other: &BmsTableHeader) -> bool
fn eq(&self, other: &BmsTableHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BmsTableHeader
impl Serialize for BmsTableHeader
impl StructuralPartialEq for BmsTableHeader
Auto Trait Implementations§
impl Freeze for BmsTableHeader
impl RefUnwindSafe for BmsTableHeader
impl Send for BmsTableHeader
impl Sync for BmsTableHeader
impl Unpin for BmsTableHeader
impl UnsafeUnpin for BmsTableHeader
impl UnwindSafe for BmsTableHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more