Struct bms_rs::bmson::BmsonInfo

source ·
pub struct BmsonInfo {
Show 17 fields pub title: String, pub subtitle: String, pub artist: String, pub subartists: Vec<String>, pub genre: String, pub mode_hint: String, pub chart_name: String, pub level: u32, pub init_bpm: FinF64, pub judge_rank: FinF64, pub total: FinF64, pub back_image: Option<String>, pub eyecatch_image: Option<String>, pub title_image: Option<String>, pub banner_image: Option<String>, pub preview_music: Option<String>, pub resolution: u32,
}
Expand description

Header metadata of chart.

Fields§

§title: String

Self explanatory title.

§subtitle: String

Self explanatory subtitle. Usually this is shown as a smaller text than title.

§artist: String

Author of the chart. It may multiple names such as Alice vs Bob, Alice feat. Bob and so on. But you should respect the value because it usually have special meaning.

§subartists: Vec<String>

Other authors of the chart. This is useful for indexing and searching.

Value of the array has form of key:value. The key can be music, vocal, chart, image, movie or other. If it has no key, you should treat as that key equals to other. The value may contains the spaces before and after key and value, so you should trim them.

Example

"subartists": ["music:5argon", "music:encX", "chart:flicknote", "movie:5argon", "image:5argon"]
§genre: String

Self explanatory genre.

§mode_hint: String

Hint for layout lanes, e.g. “beat-7k”, “popn-5k”, “generic-nkeys”. Defaults to "beat-7k".

If you want to support many lane modes of BMS, you should check this to determine the layout for lanes. Also you can check all lane information in sound_channels for strict implementation.

§chart_name: String

Special chart name, e.g. “BEGINNER”, “NORMAL”, “HYPER”, “FOUR DIMENSIONS”.

§level: u32

Self explanatory level number. It is usually set with subjective rating by the author.

§init_bpm: FinF64

Initial BPM.

§judge_rank: FinF64

Relative judge width in percentage. The variation amount may different by BMS player. Larger is easier.

§total: FinF64

Relative life bar gain in percentage. The variation amount may different by BMS player. Larger is easier.

§back_image: Option<String>

Background image file name. This should be displayed during the game play.

§eyecatch_image: Option<String>

Eyecatch image file name. This should be displayed during the chart is loading.

§title_image: Option<String>

Title image file name. This should be displayed before the game starts instead of title of the music.

§banner_image: Option<String>

Banner image file name. This should be displayed in music select or result scene. The aspect ratio of image is usually 15:4.

§preview_music: Option<String>

Preview music file name. This should be played when this chart is selected in a music select scene.

§resolution: u32

Numbers of pulse per quarter note in 4/4 measure. You must check this because it affects the actual seconds of PulseNumber.

Trait Implementations§

source§

impl Clone for BmsonInfo

source§

fn clone(&self) -> BmsonInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BmsonInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for BmsonInfo

source§

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<BmsonInfo> for BmsonInfo

source§

fn eq(&self, other: &BmsonInfo) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for BmsonInfo

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for BmsonInfo

source§

impl StructuralEq for BmsonInfo

source§

impl StructuralPartialEq for BmsonInfo

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,