blob: 5f1dec9e2fd2a26c6f10697868be88d40d7cddc1 (
plain)
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
|
pub struct Options {
pub latin1_as_utf8: bool,
pub file: String,
pub write: bool,
pub set_tags: TagOptions,
}
#[derive(Default)]
pub struct TagOptions {
pub album: Option<String>,
pub artist: Option<String>,
pub title: Option<String>,
pub track: Option<String>,
pub year: Option<String>,
}
impl Default for Options {
fn default() -> Self {
Options {
latin1_as_utf8: false,
file: String::new(),
write: false,
set_tags: Default::default(),
}
}
}
|