#[derive(Clone, Copy)]
pub struct Config {
pub sep_artist: &'static str,
pub parse_multiple_artists: bool,
}
impl<'a> Default for Config {
fn default() -> Self {
Self {
sep_artist: ";",
parse_multiple_artists: true,
}
}
}
impl Config {
pub fn sep_artist(mut self, sep: &'static str) -> Self {
self.sep_artist = sep;
self
}
pub fn parse_multiple_artists(mut self, parse_multiple_artists: bool) -> Self {
self.parse_multiple_artists = parse_multiple_artists;
self
}
}