1use crate::domain::track::Playlist; 2 3pub trait SourcePort { 4 fn get_playlists(&self) -> Result<Vec<Playlist>, SourceError>; 5} 6 7#[derive(Debug, Clone)] 8pub enum SourceError { 9 InvalidURLError, 10 AuthenticationError, 11 ParserError, 12}