mirror of
https://github.com/nushell/nushell.git
synced 2025-05-06 19:14:25 +02:00
19 lines
492 B
Rust
19 lines
492 B
Rust
use crate::parser::{CallNode, Span, Spanned};
|
|
use derive_new::new;
|
|
use getset::Getters;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, new)]
|
|
pub struct Pipeline {
|
|
crate parts: Vec<PipelineElement>,
|
|
crate post_ws: Option<Span>,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Getters, new)]
|
|
pub struct PipelineElement {
|
|
pub pre_ws: Option<Span>,
|
|
#[get = "crate"]
|
|
call: Spanned<CallNode>,
|
|
pub post_ws: Option<Span>,
|
|
pub post_pipe: Option<Span>,
|
|
}
|