pub trait MusicRecordingTrait {
// Required methods
fn get_by_artist(&self) -> &[ByArtistProperty];
fn take_by_artist(&mut self) -> Vec<ByArtistProperty>;
fn get_duration(&self) -> &[DurationProperty];
fn take_duration(&mut self) -> Vec<DurationProperty>;
fn get_in_album(&self) -> &[InAlbumProperty];
fn take_in_album(&mut self) -> Vec<InAlbumProperty>;
fn get_in_playlist(&self) -> &[InPlaylistProperty];
fn take_in_playlist(&mut self) -> Vec<InPlaylistProperty>;
fn get_isrc_code(&self) -> &[IsrcCodeProperty];
fn take_isrc_code(&mut self) -> Vec<IsrcCodeProperty>;
fn get_recording_of(&self) -> &[RecordingOfProperty];
fn take_recording_of(&mut self) -> Vec<RecordingOfProperty>;
}
Expand description
This trait is for properties from https://schema.org/MusicRecording.
Required Methods§
sourcefn get_by_artist(&self) -> &[ByArtistProperty]
fn get_by_artist(&self) -> &[ByArtistProperty]
Get https://schema.org/byArtist from Self
as borrowed slice.
sourcefn take_by_artist(&mut self) -> Vec<ByArtistProperty>
fn take_by_artist(&mut self) -> Vec<ByArtistProperty>
Take https://schema.org/byArtist from Self
as owned vector.
sourcefn get_duration(&self) -> &[DurationProperty]
fn get_duration(&self) -> &[DurationProperty]
Get https://schema.org/duration from Self
as borrowed slice.
sourcefn take_duration(&mut self) -> Vec<DurationProperty>
fn take_duration(&mut self) -> Vec<DurationProperty>
Take https://schema.org/duration from Self
as owned vector.
sourcefn get_in_album(&self) -> &[InAlbumProperty]
fn get_in_album(&self) -> &[InAlbumProperty]
Get https://schema.org/inAlbum from Self
as borrowed slice.
sourcefn take_in_album(&mut self) -> Vec<InAlbumProperty>
fn take_in_album(&mut self) -> Vec<InAlbumProperty>
Take https://schema.org/inAlbum from Self
as owned vector.
sourcefn get_in_playlist(&self) -> &[InPlaylistProperty]
fn get_in_playlist(&self) -> &[InPlaylistProperty]
Get https://schema.org/inPlaylist from Self
as borrowed slice.
sourcefn take_in_playlist(&mut self) -> Vec<InPlaylistProperty>
fn take_in_playlist(&mut self) -> Vec<InPlaylistProperty>
Take https://schema.org/inPlaylist from Self
as owned vector.
sourcefn get_isrc_code(&self) -> &[IsrcCodeProperty]
fn get_isrc_code(&self) -> &[IsrcCodeProperty]
Get https://schema.org/isrcCode from Self
as borrowed slice.
sourcefn take_isrc_code(&mut self) -> Vec<IsrcCodeProperty>
fn take_isrc_code(&mut self) -> Vec<IsrcCodeProperty>
Take https://schema.org/isrcCode from Self
as owned vector.
sourcefn get_recording_of(&self) -> &[RecordingOfProperty]
fn get_recording_of(&self) -> &[RecordingOfProperty]
Get https://schema.org/recordingOf from Self
as borrowed slice.
sourcefn take_recording_of(&mut self) -> Vec<RecordingOfProperty>
fn take_recording_of(&mut self) -> Vec<RecordingOfProperty>
Take https://schema.org/recordingOf from Self
as owned vector.