1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#[derive(Clone, Copy)]
pub struct Config {
    /// The separator used when parsing and formatting multiple artists in metadata formats that does not explicitly support
    /// multiple artists (i.e. artist is a single string separated by the separator)
    pub sep_artist: &'static str,
    /// Parse multiple artists from a single string using the separator specified above
    pub parse_multiple_artists: bool,
}

impl 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
    }
}