Added function to get all Types #36

Merged
phoenix merged 2 commits from metadata_types into devel 2025-06-26 22:23:26 +00:00
Showing only changes of commit 1e0ea1328c - Show all commits

View File

@@ -32,6 +32,21 @@ impl MetadataType {
}
}
pub fn all_metadata_types() -> Vec<Type> {
vec![
Type::Album,
Type::Artist,
Type::AlbumArtist,
Type::Date,
Type::Disc,
Type::Genre,
Type::Title,
Type::Track,
Type::TrackCount,
Type::DiscCount,
]
}
pub mod access {
pub fn get_type(t: super::Type) -> Result<String, std::io::Error> {
match t {