Struct soundcloud::Track [] [src]

pub struct Track {
    pub id: u64,
    pub created_at: String,
    pub user_id: u64,
    pub user: User,
    pub title: String,
    pub permalink: String,
    pub permalink_url: String,
    pub uri: String,
    pub sharing: String,
    pub embeddable_by: String,
    pub purchase_url: Option<String>,
    pub artwork_url: Option<String>,
    pub description: Option<String>,
    pub label: Option<Value>,
    pub duration: u64,
    pub genre: Option<String>,
    pub tags: Option<String>,
    pub label_id: Option<u64>,
    pub label_name: Option<String>,
    pub release: Option<String>,
    pub release_day: Option<u64>,
    pub release_month: Option<u64>,
    pub release_year: Option<u64>,
    pub streamable: bool,
    pub downloadable: bool,
    pub purchase_title: Option<String>,
    pub state: String,
    pub license: String,
    pub track_type: Option<String>,
    pub waveform_url: String,
    pub download_url: Option<String>,
    pub stream_url: Option<String>,
    pub video_url: Option<String>,
    pub bpm: Option<u64>,
    pub commentable: bool,
    pub isrc: Option<String>,
    pub key_signature: Option<String>,
    pub comment_count: u64,
    pub download_count: u64,
    pub playback_count: u64,
    pub favoritings_count: u64,
    pub original_format: String,
    pub original_content_size: u64,
    pub created_with: Option<App>,
    pub asset_data: Option<Vec<u8>>,
    pub artwork_data: Option<Vec<u8>>,
    pub user_favorite: Option<bool>,
}

Uploaded track.

Fields

id: u64

Integer ID.

created_at: String

Time of which the track was uploaded, as an unparsed string.

user_id: u64

User ID of the uploader.

user: User

Small representation of the uploaders user.

title: String

Title.

permalink: String

Permalink of the resource.

permalink_url: String

URL to the SoundCloud.com page.

uri: String

API resource URL.

sharing: String

Sharing status.

embeddable_by: String

Who can embed this track.

purchase_url: Option<String>

External purchase link.

artwork_url: Option<String>

URL to a JPEG image.

description: Option<String>

HTML description.

label: Option<Value>

Representation of a labels user.

duration: u64

Duration in milliseconds.

genre: Option<String>

Genre.

tags: Option<String>

List of tags.

label_id: Option<u64>

Label user ID.

label_name: Option<String>

Label user name.

release: Option<String>

Release number.

release_day: Option<u64>

Day of the release.

release_month: Option<u64>

Month of the release.

release_year: Option<u64>

Year of the release.

streamable: bool

If the track is available for stream via the API.

downloadable: bool

If the track is available for download.

purchase_title: Option<String>

Purchase title.

state: String

Encoding state.

license: String

Creative common license.

track_type: Option<String>

Track type.

waveform_url: String

URL to waveform PNG image.

download_url: Option<String>

URL to original file.

stream_url: Option<String>

URL to 128kbps mp3 stream.

video_url: Option<String>

External video link.

bpm: Option<u64>

Beats per minute.

commentable: bool

Commentable.

isrc: Option<String>

ISRC.

key_signature: Option<String>

Key.

comment_count: u64

Number of comments.

download_count: u64

Number of downloads.

playback_count: u64

Number of playbacks.

favoritings_count: u64

Number of times favorited.

original_format: String

Original upload format.

original_content_size: u64

Original upload size.

created_with: Option<App>

Application the track was uploaded with.

asset_data: Option<Vec<u8>>

Binary data of the audio file. Only for uploading.

artwork_data: Option<Vec<u8>>

Binary data of the artwork image. Only for uploading.

user_favorite: Option<bool>

User favorite.

Trait Implementations

impl PartialEq for Track
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

Derived Implementations

impl Clone for Track
[src]

fn clone(&self) -> Track

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for Track
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.