pub struct Header {Show 35 fields
pub player: Option<PlayerMode>,
pub genre: Option<String>,
pub title: Option<String>,
pub subtitle: Option<String>,
pub artist: Option<String>,
pub sub_artist: Option<String>,
pub maker: Option<String>,
pub comment: Option<Vec<String>>,
pub email: Option<String>,
pub url: Option<String>,
pub options: Option<Vec<String>>,
pub bpm: Option<f64>,
pub play_level: Option<u8>,
pub rank: Option<JudgeLevel>,
pub difficulty: Option<u8>,
pub total: Option<f64>,
pub volume: Volume,
pub ln_type: LnType,
pub poor_bga_mode: PoorMode,
pub back_bmp: Option<PathBuf>,
pub stage_file: Option<PathBuf>,
pub banner: Option<PathBuf>,
pub is_octave: bool,
pub midi_file: Option<PathBuf>,
pub video_file: Option<PathBuf>,
pub wav_path_root: Option<PathBuf>,
pub wav_files: HashMap<ObjId, PathBuf>,
pub poor_bmp: Option<PathBuf>,
pub bmp_files: HashMap<ObjId, Bmp>,
pub bpm_changes: HashMap<ObjId, f64>,
pub scrolling_factor_changes: HashMap<ObjId, f64>,
pub spacing_factor_changes: HashMap<ObjId, f64>,
pub texts: HashMap<ObjId, String>,
pub change_options: HashMap<ObjId, String>,
pub stops: HashMap<ObjId, u32>,
}
Expand description
A header parsed from TokenStream
.
Fields§
§player: Option<PlayerMode>
The play style of the score.
genre: Option<String>
The genre of the score.
title: Option<String>
The title of the score.
subtitle: Option<String>
The subtitle of the score.
artist: Option<String>
The artist of the music in the score.
sub_artist: Option<String>
The co-artist of the music in the score.
maker: Option<String>
Who placed the notes into the score.
comment: Option<Vec<String>>
The text messages of the score. It may be closed with double quotes.
email: Option<String>
The email address of the author.
url: Option<String>
The url of the author.
options: Option<Vec<String>>
The message for overriding options of some BMS player.
bpm: Option<f64>
The initial BPM of the score.
play_level: Option<u8>
The play level of the score.
rank: Option<JudgeLevel>
The judgement level of the score.
difficulty: Option<u8>
The difficulty of the score.
total: Option<f64>
The total gauge percentage when all notes is got as PERFECT.
volume: Volume
The volume of the score.
ln_type: LnType
The LN notation type of the score.
poor_bga_mode: PoorMode
The display mode for background image/video.
back_bmp: Option<PathBuf>
The path of background image, which is shown while playing the score.
stage_file: Option<PathBuf>
The path of splash screen image, which is shown before playing the score.
The path of banner image.
is_octave: bool
Whether the score is the octave mode.
midi_file: Option<PathBuf>
The path of MIDI file, which is played as BGM while playing the score.
video_file: Option<PathBuf>
The path of the background video. The video should be started the playing from the section 000.
wav_path_root: Option<PathBuf>
The path to override the base path of the WAV file path.
wav_files: HashMap<ObjId, PathBuf>
The WAV file paths corresponding to the id of the note object.
poor_bmp: Option<PathBuf>
The path of image, which is shown when the player got POOR.
bmp_files: HashMap<ObjId, Bmp>
The BMP file paths corresponding to the id of the background image/video object.
bpm_changes: HashMap<ObjId, f64>
The BPMs corresponding to the id of the BPM change object.
scrolling_factor_changes: HashMap<ObjId, f64>
The scrolling factors corresponding to the id of the scroll speed change object.
spacing_factor_changes: HashMap<ObjId, f64>
The spacing factors corresponding to the id of the spacing change object.
texts: HashMap<ObjId, String>
The texts corresponding to the id of the text object.
change_options: HashMap<ObjId, String>
The option messages corresponding to the id of the change option object.
stops: HashMap<ObjId, u32>
Stop lengths by stop object id.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Header
impl<'de> Deserialize<'de> for Header
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>,
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more