mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 15:50:18 +00:00
19 lines
604 B
Rust
19 lines
604 B
Rust
use crate::entries::EntryDeclaration;
|
|
use alloc::collections::BTreeMap;
|
|
use alloc::string::String;
|
|
use alloc::vec::Vec;
|
|
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>>,
|
|
}
|