mirror of
https://github.com/edera-dev/sprout.git
synced 2026-11-04 21:42:23 +00:00
19 lines
620 B
Rust
19 lines
620 B
Rust
use crate::entries::EntryDeclaration;
|
|
use alloc::collections::BTreeMap;
|
|
use alloc::string::String;
|
|
use alloc::vec::Vec;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
/// Matrix generator configuration.
|
|
/// The matrix generator produces multiple entries based
|
|
/// on input values multiplicatively.
|
|
#[derive(Serialize, Deserialize, Debug, Default, Clone)]
|
|
pub struct MatrixConfiguration {
|
|
/// 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: BTreeMap<String, Vec<String>>,
|
|
}
|