Skip to main content

datasources/
information.rs

1#[derive(Clone)]
2pub struct Information {
3    pub descriptions: Vec<String>,
4    pub overrides: Vec<String>,
5    pub change_logs: Vec<String>,
6}
7
8impl Information {
9    pub fn new(
10        descriptions: impl IntoIterator<Item = impl Into<String>>,
11        overrides: impl IntoIterator<Item = impl Into<String>>,
12        change_logs: impl IntoIterator<Item = impl Into<String>>,
13    ) -> Self {
14        Self {
15            descriptions: descriptions.into_iter().map(Into::into).collect(),
16            overrides: overrides.into_iter().map(Into::into).collect(),
17            change_logs: change_logs.into_iter().map(Into::into).collect(),
18        }
19    }
20}