Song

Struct Song 

Source
pub struct Song {
Show 63 fields pub annotation_count: u32, pub api_path: String, pub apple_music_id: Option<String>, pub apple_music_player_url: Option<String>, pub comment_count: Option<u32>, pub custom_header_image_url: Option<String>, pub custom_song_art_image_url: Option<String>, pub description: Option<Body>, pub description_preview: Option<String>, pub embed_content: Option<String>, pub facebook_share_message_without_url: Option<String>, pub featured_video: Option<bool>, pub full_title: String, pub has_instagram_reel_annotations: Option<bool>, pub header_image_thumbnail_url: String, pub header_image_url: String, pub hidden: Option<bool>, pub id: u32, pub instrumental: Option<bool>, pub is_music: Option<bool>, pub lyrics: Option<Body>, pub lyrics_owner_id: u32, pub lyrics_state: String, pub lyrics_updated_at: Option<u64>, pub path: String, pub pending_lyrics_edits_count: Option<u32>, pub published: Option<bool>, pub pusher_channel: Option<String>, pub release_date_components: Option<Date>, pub pyongs_count: Option<u32>, pub recording_location: Option<String>, pub release_date: Option<String>, pub release_date_for_display: Option<String>, pub share_url: Option<String>, pub song_art_image_thumbnail_url: String, pub song_art_image_url: String, pub soundcloud_url: Option<String>, pub spotify_uuid: Option<String>, pub stats: SongStatus, pub title: String, pub title_with_featured: String, pub tracking_paths: Option<TrackingPaths>, pub twitter_share_message: Option<String>, pub twitter_share_message_without_url: Option<String>, pub updated_by_human_at: Option<u64>, pub url: String, pub viewable_by_roles: Option<Vec<String>>, pub youtube_start: Option<String>, pub youtube_url: Option<String>, pub current_user_metadata: Option<UserMetadata>, pub primary_artist: Artist, pub album: Option<Album>, pub albums: Option<Vec<Album>>, pub custom_performances: Option<Vec<SongPerformance>>, pub description_annotation: Option<Referent>, pub featured_artists: Option<Vec<Artist>>, pub media: Option<Vec<SongMedia>>, pub producer_artists: Option<Vec<Artist>>, pub song_relationships: Option<Vec<SongRelationship>>, pub verified_annotations_by: Option<Vec<User>>, pub verified_contributors: Option<Vec<SongContributor>>, pub verified_lyrics_by: Option<Vec<User>>, pub writer_artists: Option<Vec<Artist>>,
}

Fields§

§annotation_count: u32

Number of annotations on this song.

§api_path: String

Path of the API.

§apple_music_id: Option<String>

Id of the song in apple music.

Only in get_song

§apple_music_player_url: Option<String>

URL of the song in apple music.

Only in get_song

§comment_count: Option<u32>

Number of comments on this song.

Only in get_song with user-core level token

§custom_header_image_url: Option<String>

Custom header image.

Only in get_song with user-core level token

§custom_song_art_image_url: Option<String>

Custom song art image.

Only in get_song with user-core level token

§description: Option<Body>

Description of the music.

Only in get_song

§description_preview: Option<String>

Preview of the description.

Only in get_song with user-core level token

§embed_content: Option<String>

HTML to embed the content in a web page.

Only in get_song

§facebook_share_message_without_url: Option<String>

Facebook share message without url.

Only in get_song with user-core level token

§featured_video: Option<bool>

If has a video linked with this song.

Only in get_song

§full_title: String

Full song title is: “name by author”.

§has_instagram_reel_annotations: Option<bool>

If has instagram reels annotations.

Only in get_song with user-core level token

§header_image_thumbnail_url: String

Header image with a smaller size.

§header_image_url: String

Header image.

§hidden: Option<bool>

If this song is hidden?

Only in get_song with user-core level token

§id: u32

Id of the song.

§instrumental: Option<bool>

If is instrumental song.

Only in get_song with user-core level token

§is_music: Option<bool>

If this song is a music lol

Only in get_song with user-core level token

§lyrics: Option<Body>

Literally lyrics.

Only in get_song with user-core level token

§lyrics_owner_id: u32

Id of the user who requested the lyrics.

§lyrics_state: String

Lyrics state.

§lyrics_updated_at: Option<u64>

Lyrics updated timestamp.

Only in get_song with user-core level token

§path: String

Path where is in genius.com website.

§pending_lyrics_edits_count: Option<u32>

Pending lyrics edits count.

Only in get_song with user-core level token

§published: Option<bool>

If is published?

Only in get_song with user-core level token

§pusher_channel: Option<String>

Only in get_song with user-core level token

§release_date_components: Option<Date>

Release date of the album in struct format Date.

Only in get_song with user-core level token

§pyongs_count: Option<u32>

Number of pyongs in this song.

§recording_location: Option<String>

The location of the recording.

Only in get_song

§release_date: Option<String>

Release date of this song in ISO 8601 date format.

Only in get_song

§release_date_for_display: Option<String>

Release date in {Month name} {day}, {year} format.

Only in get_song

§share_url: Option<String>

Share url.

Only in get_song with user-core level token

§song_art_image_thumbnail_url: String

Song art image with a smaller size.

§song_art_image_url: String

Song art image.

§soundcloud_url: Option<String>

Soundcloud url.

Only in get_song with user-core level token

§spotify_uuid: Option<String>

Spotify uuid.

Only in get_song with user-core level token

§stats: SongStatus

Information about contribution and views.

§title: String

Title of the song.

§title_with_featured: String

Title but with the featured artist if it exists.

§tracking_paths: Option<TrackingPaths>

Only in get_song with user-core level token

§twitter_share_message: Option<String>

Twitter share message

Only in get_song with user-core level token

§twitter_share_message_without_url: Option<String>

Twitter share message without url.

Only in get_song with user-core level token

§updated_by_human_at: Option<u64>

Updated by a human timestamp.

Only in get_song with user-core level token

§url: String

Url of the song page.

§viewable_by_roles: Option<Vec<String>>

Only in get_song with user-core level token

§youtube_start: Option<String>

Youtube start.

Only in get_song with user-core level token

§youtube_url: Option<String>

Youtube url.

Only in get_song with user-core level token

§current_user_metadata: Option<UserMetadata>

User permissions and interactions.

Only in get_song

§primary_artist: Artist

Author of the song.

§album: Option<Album>

Album of the song.

Only in get_song

§albums: Option<Vec<Album>>

All albums that this song appears, I don’t know why but yes.

Only in get_song with user-core level token

§custom_performances: Option<Vec<SongPerformance>>

People who worked in the music.

Only in get_song

§description_annotation: Option<Referent>

Description annotation.

Only in get_song

§featured_artists: Option<Vec<Artist>>

Artists who featured in the song.

Only in get_song

§media: Option<Vec<SongMedia>>

Music platforms that host this song and its url.

Only in get_song

§producer_artists: Option<Vec<Artist>>

Artists who produced this song.

Only in get_song

§song_relationships: Option<Vec<SongRelationship>>

Songs that somehow relate to this.

Only in get_song

§verified_annotations_by: Option<Vec<User>>

All Verified Annotation contributors.

Only in get_song

§verified_contributors: Option<Vec<SongContributor>>

All verified contributors

Only in get_song

§verified_lyrics_by: Option<Vec<User>>

All Verified lyrics contributors.

Only in get_song

§writer_artists: Option<Vec<Artist>>

Composers

Only in get_song

Trait Implementations§

Source§

impl Debug for Song

Source§

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

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

impl<'de> Deserialize<'de> for Song

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 Serialize for Song

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

Auto Trait Implementations§

§

impl Freeze for Song

§

impl RefUnwindSafe for Song

§

impl Send for Song

§

impl Sync for Song

§

impl Unpin for Song

§

impl UnwindSafe for Song

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

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

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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,