Remove unused MediaType
This commit is contained in:
parent
c678d93661
commit
134b425ce6
@ -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;
|
||||||
|
@ -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(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user