Show recordings in main window

This commit is contained in:
Elias Projahn 2020-10-10 00:22:45 +02:00
parent 5a95db69fe
commit baea690ae6
5 changed files with 84 additions and 2 deletions

View file

@ -135,6 +135,18 @@ pub struct RecordingDescription {
pub performances: Vec<PerformanceDescription>,
}
impl RecordingDescription {
pub fn get_performers(&self) -> String {
let texts: Vec<String> = self
.performances
.iter()
.map(|performance| performance.get_title())
.collect();
texts.join(", ")
}
}
#[derive(Debug, Clone)]
pub struct RecordingInsertion {
pub recording: Recording,