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