Struct itunes_com::wrappers::URLTrack
source · pub struct URLTrack { /* private fields */ }Expand description
Safe wrapper over a IITURLTrack
Implementations§
source§impl URLTrack
impl URLTrack
sourcepub fn set_URL(&mut self, URL: &str) -> Result<()>
pub fn set_URL(&mut self, URL: &str) -> Result<()>
The URL of the stream represented by this track.
sourcepub fn is_Podcast(&self) -> Result<bool>
pub fn is_Podcast(&self) -> Result<bool>
True if this is a podcast track.
sourcepub fn UpdatePodcastFeed(&self) -> Result<()>
pub fn UpdatePodcastFeed(&self) -> Result<()>
Update the podcast feed for this track.
sourcepub fn DownloadPodcastEpisode(&self) -> Result<()>
pub fn DownloadPodcastEpisode(&self) -> Result<()>
Start downloading the podcast episode that corresponds to this track.
sourcepub fn set_Category(&mut self, Category: &str) -> Result<()>
pub fn set_Category(&mut self, Category: &str) -> Result<()>
Category for the track.
sourcepub fn Description(&self) -> Result<String>
pub fn Description(&self) -> Result<String>
Description for the track.
sourcepub fn set_Description(&mut self, Description: &str) -> Result<()>
pub fn set_Description(&mut self, Description: &str) -> Result<()>
Description for the track.
sourcepub fn LongDescription(&self) -> Result<String>
pub fn LongDescription(&self) -> Result<String>
Long description for the track.
sourcepub fn set_LongDescription(&mut self, LongDescription: &str) -> Result<()>
pub fn set_LongDescription(&mut self, LongDescription: &str) -> Result<()>
Long description for the track.
sourcepub fn AlbumRating(&self) -> Result<i32>
pub fn AlbumRating(&self) -> Result<i32>
The user or computed rating of the album that this track belongs to (0 to 100).
sourcepub fn set_AlbumRating(&mut self, AlbumRating: i32) -> Result<()>
pub fn set_AlbumRating(&mut self, AlbumRating: i32) -> Result<()>
The user or computed rating of the album that this track belongs to (0 to 100).
sourcepub fn AlbumRatingKind(&self) -> Result<ITRatingKind>
pub fn AlbumRatingKind(&self) -> Result<ITRatingKind>
The album rating kind.
sourcepub fn ratingKind(&self) -> Result<ITRatingKind>
pub fn ratingKind(&self) -> Result<ITRatingKind>
The track rating kind.
sourcepub fn Playlists(&self) -> Result<PlaylistCollection>
pub fn Playlists(&self) -> Result<PlaylistCollection>
Returns a collection of playlists that contain the song that this track represents.
Trait Implementations§
source§impl IITTrackWrapper for URLTrack
impl IITTrackWrapper for URLTrack
source§fn AddArtworkFromFile(&self, filePath: &str) -> Result<Artwork>
fn AddArtworkFromFile(&self, filePath: &str) -> Result<Artwork>
Add artwork from an image file to this track.
source§fn Kind(&self) -> Result<ITTrackKind>
fn Kind(&self) -> Result<ITTrackKind>
The track kind.
source§fn is_Compilation(&self) -> Result<bool>
fn is_Compilation(&self) -> Result<bool>
True if this track is from a compilation album.
source§fn set_Compilation(&mut self, Compilation: bool) -> Result<()>
fn set_Compilation(&mut self, Compilation: bool) -> Result<()>
True if this track is from a compilation album.
source§fn set_DiscCount(&mut self, DiscCount: i32) -> Result<()>
fn set_DiscCount(&mut self, DiscCount: i32) -> Result<()>
The total number of discs in the source album.
source§fn DiscNumber(&self) -> Result<i32>
fn DiscNumber(&self) -> Result<i32>
The index of the disc containing the track on the source album.
source§fn set_DiscNumber(&mut self, DiscNumber: i32) -> Result<()>
fn set_DiscNumber(&mut self, DiscNumber: i32) -> Result<()>
The index of the disc containing the track on the source album.
source§fn is_Enabled(&self) -> Result<bool>
fn is_Enabled(&self) -> Result<bool>
True if the track is checked for playback.
source§fn set_Enabled(&mut self, Enabled: bool) -> Result<()>
fn set_Enabled(&mut self, Enabled: bool) -> Result<()>
True if the track is checked for playback.
source§fn set_Genre(&mut self, Genre: &str) -> Result<()>
fn set_Genre(&mut self, Genre: &str) -> Result<()>
The music/audio genre (category) of the track.
source§fn Grouping(&self) -> Result<String>
fn Grouping(&self) -> Result<String>
The grouping (piece) of the track. Generally used to denote movements within classical work.
source§fn set_Grouping(&mut self, Grouping: &str) -> Result<()>
fn set_Grouping(&mut self, Grouping: &str) -> Result<()>
The grouping (piece) of the track. Generally used to denote movements within classical work.
source§fn KindAsString(&self) -> Result<String>
fn KindAsString(&self) -> Result<String>
A text description of the track.
source§fn ModificationDate(&self) -> Result<f64>
fn ModificationDate(&self) -> Result<f64>
The modification date of the content of the track.
source§fn PlayedCount(&self) -> Result<i32>
fn PlayedCount(&self) -> Result<i32>
The number of times the track has been played.
source§fn set_PlayedCount(&mut self, PlayedCount: i32) -> Result<()>
fn set_PlayedCount(&mut self, PlayedCount: i32) -> Result<()>
The number of times the track has been played.
source§fn PlayedDate(&self) -> Result<f64>
fn PlayedDate(&self) -> Result<f64>
The date and time the track was last played. A value of zero means no played date.
source§fn set_PlayedDate(&mut self, PlayedDate: f64) -> Result<()>
fn set_PlayedDate(&mut self, PlayedDate: f64) -> Result<()>
The date and time the track was last played. A value of zero means no played date.
source§fn PlayOrderIndex(&self) -> Result<i32>
fn PlayOrderIndex(&self) -> Result<i32>
The play order index of the track in the owner playlist (1-based).
source§fn SampleRate(&self) -> Result<i32>
fn SampleRate(&self) -> Result<i32>
The sample rate of the track (in Hz).
source§fn TrackCount(&self) -> Result<i32>
fn TrackCount(&self) -> Result<i32>
The total number of tracks on the source album.
source§fn set_TrackCount(&mut self, TrackCount: i32) -> Result<()>
fn set_TrackCount(&mut self, TrackCount: i32) -> Result<()>
The total number of tracks on the source album.
source§fn TrackNumber(&self) -> Result<i32>
fn TrackNumber(&self) -> Result<i32>
The index of the track on the source album.
source§fn set_TrackNumber(&mut self, TrackNumber: i32) -> Result<()>
fn set_TrackNumber(&mut self, TrackNumber: i32) -> Result<()>
The index of the track on the source album.
source§fn VolumeAdjustment(&self) -> Result<i32>
fn VolumeAdjustment(&self) -> Result<i32>
The relative volume adjustment of the track (-100% to 100%).
source§fn set_VolumeAdjustment(&mut self, VolumeAdjustment: i32) -> Result<()>
fn set_VolumeAdjustment(&mut self, VolumeAdjustment: i32) -> Result<()>
The relative volume adjustment of the track (-100% to 100%).
source§fn Artwork(&self) -> Result<ArtworkCollection>
fn Artwork(&self) -> Result<ArtworkCollection>
Returns a collection of artwork.