pub enum ActionBody {
Comment(String),
If(Pipeline),
ElseIf(Pipeline),
Else,
End,
Range {
vars: Option<RangeVars>,
pipeline: Pipeline,
},
With(Pipeline),
Define(String),
Template {
name: String,
pipeline: Option<Pipeline>,
},
Block {
name: String,
pipeline: Pipeline,
},
Pipeline(Pipeline),
}Expand description
The body of an action
Variants§
Comment(String)
Comment: {{/* comment */}}
If(Pipeline)
If: {{- if .X }}
ElseIf(Pipeline)
Else if: {{- else if .X }}
Else
Else: {{- else }}
End
End: {{- end }}
Range
Range: {{- range .X }} or {{- range $i, $v := .X }}
Fields
With(Pipeline)
With: {{- with .X }}
Define(String)
Define: {{- define “name” }}
Template
Template: {{ template “name” . }}
Block
Block: {{- block “name” . }}
Pipeline(Pipeline)
A pipeline expression (variable access, function call, etc.)
Trait Implementations§
Source§impl Clone for ActionBody
impl Clone for ActionBody
Source§fn clone(&self) -> ActionBody
fn clone(&self) -> ActionBody
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionBody
impl Debug for ActionBody
Source§impl PartialEq for ActionBody
impl PartialEq for ActionBody
impl StructuralPartialEq for ActionBody
Auto Trait Implementations§
impl Freeze for ActionBody
impl RefUnwindSafe for ActionBody
impl Send for ActionBody
impl Sync for ActionBody
impl Unpin for ActionBody
impl UnwindSafe for ActionBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more