2021-09-02 20:21:37 +02:00
|
|
|
use crate::ast::Expression;
|
2021-09-02 10:25:22 +02:00
|
|
|
|
|
|
|
#[derive(Debug, Clone)]
|
|
|
|
pub struct Pipeline {
|
|
|
|
pub expressions: Vec<Expression>,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Default for Pipeline {
|
|
|
|
fn default() -> Self {
|
|
|
|
Self::new()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Pipeline {
|
|
|
|
pub fn new() -> Self {
|
|
|
|
Self {
|
|
|
|
expressions: vec![],
|
|
|
|
}
|
|
|
|
}
|
2021-09-03 04:15:01 +02:00
|
|
|
|
|
|
|
pub fn from_vec(expressions: Vec<Expression>) -> Pipeline {
|
|
|
|
Self { expressions }
|
|
|
|
}
|
2021-09-02 10:25:22 +02:00
|
|
|
}
|