Added function to get all Types (#36)
Reviewed-on: phoenix/icarus_meta#36 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
1 parent
973d163ca5
commit
565d361b64
3 files changed
+17
-2
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user