pub struct TrackEntity {
Show 16 fields pub id: String, pub title: String, pub artist: String, pub image: String, pub mode: Mode, pub key: Key, pub bpm: f32, pub time: u64, pub popularity: Score, pub danceability: Score, pub energy: Score, pub valence: Score, pub acousticness: Score, pub instrumentalness: Score, pub liveness: Score, pub speechiness: Score,
}
Expand description

TrackEntity

楽曲の情報や性質をもつ

NOTE

  • 要素を持ちすぎなので削れないか考える
  • Entityである必要が今のところないのではないか

Fields

id: String

TrackID

title: String

Track名

artist: String

アーティスト名

image: String

Track画像URL

mode: Mode

モード(旋法)

key: Key

キー

bpm: f32

BPM

time: u64

再生時間(秒)

popularity: Score

人気度

danceability: Score

踊りやすさ

energy: Score

エネルギー

valence: Score

ポジティブ度

acousticness: Score

アコースティック度

instrumentalness: Score

インストゥルメンタル

liveness: Score

ライブ感

speechiness: Score

ポエトリー

Implementations

このTrackがライブ音源かどうかを返す

  • true: ライブ音源
  • false: スタジオ音源

このTrackがスピーチかどうかを返す

  • true: スピーチ
  • false: スピーチではない

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.