pub struct ForEach {
pub query: Option<Loose<String>>,
pub key: Option<Loose<OneOf<String, Vec<String>>>>,
pub concurrency: Option<Loose<u64>>,
pub on_row_error: Option<Loose<RowErrors>>,
pub on_orphan_rows: Option<Loose<OrphanRows>>,
pub max_population_rows: Option<Loose<u64>>,
pub keep_results: Option<Loose<bool>>,
pub mask_row_values: Option<Loose<bool>>,
}Expand description
One copy of the output per row of a driver query (a per-row output): each copy gets only its row’s slice of the results, and the driver row as each.<column> in every template of the output. false turns an inherited for_each off.
Fields§
§query: Option<Loose<String>>The driver: a query of the report, one row per copy of the output. It isn’t a tab or section of the output itself.
key: Option<Loose<OneOf<String, Vec<String>>>>The column (or list of columns) that identifies a row, in the driver and in every query of the output. Use an opaque id, never an email or a name: keys appear in file names and logs.
concurrency: Option<Loose<u64>>How many rows render and deliver at once. Default: 4. --row-concurrency and DRE_ROW_CONCURRENCY override it.
on_row_error: Option<Loose<RowErrors>>continue (default): a failed row is recorded and the others carry on; the run ends failed. fail: render every row first, and deliver only if all rendered.
on_orphan_rows: Option<Loose<OrphanRows>>Rows of a query whose key isn’t in the driver: warn (default) or fail.
max_population_rows: Option<Loose<u64>>The most rows across the output’s queries before anything renders. Default: 5,000,000.
keep_results: Option<Loose<bool>>Keep the run’s query results in its run folder, for --retry-failed. Default: true.
mask_row_values: Option<Loose<bool>>Mask destination values rendered from each.* (addresses, paths) in the console, logs and results. Default: the project’s mask_row_values, true.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ForEach
impl<'de> Deserialize<'de> for ForEach
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for ForEach
impl JsonSchema for ForEach
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more