atento-core 0.1.0

Core engine for the Atento Chained Script CLI
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::data_type::DataType;
use serde::{Deserialize, Serialize};

/// Defines how to extract an output value from a step's stdout using a regex pattern.
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct Output {
    /// Regex pattern with at least one capture group
    pub pattern: String,
    #[serde(default, rename = "type")]
    pub type_: DataType,
}