Remove unused MediaType

This commit is contained in:
Ethan Girouard 2024-10-06 15:50:21 -04:00
parent c678d93661
commit 134b425ce6
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146
2 changed files with 0 additions and 21 deletions

View File

@ -15,7 +15,6 @@ pub mod users;
pub mod search; pub mod search;
pub mod fileserv; pub mod fileserv;
pub mod error_template; pub mod error_template;
pub mod media_type;
pub mod api; pub mod api;
pub mod upload; pub mod upload;
pub mod util; pub mod util;

View File

@ -1,20 +0,0 @@
use serde::{Deserialize, Serialize};
/// Differentiates between different types of media
/// Used to display a short text near a corresponging image / title to indicate what type of media it is
#[derive(Serialize, Deserialize)]
pub enum MediaType {
Song,
Album,
Artist,
}
impl ToString for MediaType {
fn to_string(&self) -> String {
match self {
MediaType::Song => "Song".to_string(),
MediaType::Album => "Album".to_string(),
MediaType::Artist => "Artist".to_string(),
}
}
}