#[non_exhaustive]pub enum ItemKey {
Show 103 variants
AlbumTitle,
SetSubtitle,
ShowName,
ContentGroup,
TrackTitle,
TrackSubtitle,
OriginalAlbumTitle,
OriginalArtist,
OriginalLyricist,
AlbumTitleSortOrder,
AlbumArtistSortOrder,
TrackTitleSortOrder,
TrackArtistSortOrder,
ShowNameSortOrder,
ComposerSortOrder,
AlbumArtist,
TrackArtist,
Arranger,
Writer,
Composer,
Conductor,
Director,
Engineer,
InvolvedPeople,
Lyricist,
MixDj,
MixEngineer,
MusicianCredits,
Performer,
Producer,
Publisher,
Label,
InternetRadioStationName,
InternetRadioStationOwner,
Remixer,
DiscNumber,
DiscTotal,
TrackNumber,
TrackTotal,
Popularimeter,
ParentalAdvisory,
RecordingDate,
Year,
OriginalReleaseDate,
Isrc,
Barcode,
CatalogNumber,
Work,
Movement,
MovementNumber,
MovementTotal,
MusicBrainzRecordingId,
MusicBrainzTrackId,
MusicBrainzReleaseId,
MusicBrainzReleaseGroupId,
MusicBrainzArtistId,
MusicBrainzReleaseArtistId,
MusicBrainzWorkId,
FlagCompilation,
FlagPodcast,
FileType,
FileOwner,
TaggingTime,
Length,
OriginalFileName,
OriginalMediaType,
EncodedBy,
EncoderSoftware,
EncoderSettings,
EncodingTime,
ReplayGainAlbumGain,
ReplayGainAlbumPeak,
ReplayGainTrackGain,
ReplayGainTrackPeak,
AudioFileUrl,
AudioSourceUrl,
CommercialInformationUrl,
CopyrightUrl,
TrackArtistUrl,
RadioStationUrl,
PaymentUrl,
PublisherUrl,
Genre,
InitialKey,
Color,
Mood,
Bpm,
CopyrightMessage,
License,
PodcastDescription,
PodcastSeriesCategory,
PodcastURL,
PodcastReleaseDate,
PodcastGlobalUniqueID,
PodcastKeywords,
Comment,
Description,
Language,
Script,
Lyrics,
AppleXid,
AppleId3v2ContentGroup,
Unknown(String),
}Expand description
A generic representation of a tag’s key
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AlbumTitle
SetSubtitle
ShowName
ContentGroup
TrackTitle
TrackSubtitle
OriginalAlbumTitle
OriginalArtist
OriginalLyricist
AlbumTitleSortOrder
AlbumArtistSortOrder
TrackTitleSortOrder
TrackArtistSortOrder
ShowNameSortOrder
ComposerSortOrder
AlbumArtist
TrackArtist
Arranger
Writer
Composer
Conductor
Director
Engineer
InvolvedPeople
Lyricist
MixDj
MixEngineer
MusicianCredits
Performer
Producer
Publisher
Label
InternetRadioStationName
InternetRadioStationOwner
Remixer
DiscNumber
DiscTotal
TrackNumber
TrackTotal
Popularimeter
ParentalAdvisory
RecordingDate
Year
OriginalReleaseDate
Isrc
Barcode
CatalogNumber
Work
Movement
MovementNumber
MovementTotal
MusicBrainzRecordingId
MusicBrainzTrackId
MusicBrainzReleaseId
MusicBrainzReleaseGroupId
MusicBrainzArtistId
MusicBrainzReleaseArtistId
MusicBrainzWorkId
FlagCompilation
FlagPodcast
FileType
FileOwner
TaggingTime
Length
OriginalFileName
OriginalMediaType
EncodedBy
EncoderSoftware
EncoderSettings
EncodingTime
ReplayGainAlbumGain
ReplayGainAlbumPeak
ReplayGainTrackGain
ReplayGainTrackPeak
AudioFileUrl
AudioSourceUrl
CommercialInformationUrl
CopyrightUrl
TrackArtistUrl
RadioStationUrl
PaymentUrl
PublisherUrl
Genre
InitialKey
Color
Mood
Bpm
CopyrightMessage
License
PodcastDescription
PodcastSeriesCategory
PodcastURL
PodcastReleaseDate
PodcastGlobalUniqueID
PodcastKeywords
Comment
Description
Language
Script
Lyrics
AppleXid
AppleId3v2ContentGroup
Unknown(String)
When a key couldn’t be mapped to another variant
This will not allow writing keys that are out of spec (Eg. ID3v2.4 frame IDs must be 4 characters)
Implementations§
source§impl ItemKey
impl ItemKey
sourcepub fn from_key(tag_type: TagType, key: &str) -> Self
pub fn from_key(tag_type: TagType, key: &str) -> Self
Map a format specific key to an ItemKey
NOTE: If used with ID3v2, this will only check against the ID3v2.4 keys.
If you wish to use a V2 or V3 key, see upgrade_v2 and upgrade_v3
Trait Implementations§
source§impl PartialEq<ItemKey> for ItemKey
impl PartialEq<ItemKey> for ItemKey
impl Eq for ItemKey
impl StructuralEq for ItemKey
impl StructuralPartialEq for ItemKey
Auto Trait Implementations§
impl RefUnwindSafe for ItemKey
impl Send for ItemKey
impl Sync for ItemKey
impl Unpin for ItemKey
impl UnwindSafe for ItemKey
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more