mdd-lib 0.1.8

core library for creating and running mdd sources and downloaders
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::domain::track::Playlist;

pub trait SourcePort {
    fn get_playlists(&self) -> Result<Vec<Playlist>, SourceError>;
}

#[derive(Debug, Clone)]
pub enum SourceError {
    InvalidURLError,
    AuthenticationError,
    ParserError,
}