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)] pub enum SourceError { InvalidURLError, AuthenticationError, ParserError, }
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)] pub enum SourceError { InvalidURLError, AuthenticationError, ParserError, }