diff --git a/src/tag/item.rs b/src/tag/item.rs index debb8ba08..faf700154 100644 --- a/src/tag/item.rs +++ b/src/tag/item.rs @@ -413,7 +413,11 @@ macro_rules! gen_item_keys { ),+ ]; KEYS => [ - $($variant:ident),+ $(,)? + $( + $(#[$variant_meta:meta])* + $variant_ident:ident + ),+ + $(,)? ] ) => { #[derive(PartialEq, Clone, Debug, Eq, Hash)] @@ -422,7 +426,8 @@ macro_rules! gen_item_keys { /// A generic representation of a tag's key pub enum ItemKey { $( - $variant, + $(#[$variant_meta])* + $variant_ident, )+ /// When a key couldn't be mapped to another variant /// @@ -551,21 +556,61 @@ gen_item_keys!( Movement, MovementNumber, MovementTotal, - // MusicBrainz Recording ID: + + /////////////////////////////////////////////////////////////// + // MusicBrainz Identfiers + + /// MusicBrainz Recording ID + /// + /// Textual representation of the UUID. + /// + /// Reference: MusicBrainzRecordingId, - // MusicBrainz Track ID: + + /// MusicBrainz Track ID + /// + /// Textual representation of the UUID. + /// + /// Reference: MusicBrainzTrackId, - // MusicBrainz Release ID: + + /// MusicBrainz Release ID + /// + /// Textual representation of the UUID. + /// + /// Reference: MusicBrainzReleaseId, - // MusicBrainz Release Group ID: + + /// MusicBrainz Release Group ID + /// + /// Textual representation of the UUID. + /// + /// Reference: MusicBrainzReleaseGroupId, - // MusicBrainz Artist ID: + + /// MusicBrainz Artist ID + /// + /// Textual representation of the UUID. + /// + /// Reference: MusicBrainzArtistId, - // MusicBrainz Release Artist ID: + + /// MusicBrainz Release Artist ID + /// + /// Textual representation of the UUID. + /// + /// Reference: MusicBrainzReleaseArtistId, - // MusicBrainz Work ID: + + /// MusicBrainz Work ID + /// + /// Textual representation of the UUID. + /// + /// Reference: MusicBrainzWorkId, + /////////////////////////////////////////////////////////////// + // Flags FlagCompilation, FlagPodcast,