pub enum Expression {
Reference(Reference),
Literal(Literal),
Pipeline {
source: Box<Expression>,
stages: Vec<PipeStage>,
},
}Expand description
A parsed expression from ceremony YAML.
Expressions can be:
- Simple references:
${artifact.ksr} - Pipelines:
${artifact.ksr | sha256 | hex} - Function calls with arguments:
${concat(a | sha256, b | sha256) | hex}
Variants§
Reference(Reference)
A simple reference to a parameter or artifact
Literal(Literal)
A literal value
Pipeline
A pipeline of transformations
Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§impl Debug for Expression
impl Debug for Expression
Source§impl PartialEq for Expression
impl PartialEq for Expression
impl StructuralPartialEq for Expression
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnsafeUnpin for Expression
impl UnwindSafe for Expression
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