2025-11-02 23:28:31 -05:00
|
|
|
use crate::entries::EntryDeclaration;
|
2025-11-03 02:04:21 -05:00
|
|
|
use alloc::collections::BTreeMap;
|
|
|
|
|
use alloc::string::String;
|
|
|
|
|
use alloc::vec::Vec;
|
2025-11-02 23:28:31 -05:00
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
|
|
|
|
|
/// List generator configuration.
|
|
|
|
|
/// The list generator produces multiple entries based
|
|
|
|
|
/// on a set of input maps.
|
|
|
|
|
#[derive(Serialize, Deserialize, Debug, Default, Clone)]
|
|
|
|
|
pub struct ListConfiguration {
|
|
|
|
|
/// The template entry to use for each generated entry.
|
|
|
|
|
#[serde(default)]
|
|
|
|
|
pub entry: EntryDeclaration,
|
|
|
|
|
/// The values to use as the input for the matrix.
|
|
|
|
|
#[serde(default)]
|
|
|
|
|
pub values: Vec<BTreeMap<String, String>>,
|
|
|
|
|
}
|