pub enum ComputeRule {
Concat(Vec<ParamExpr>),
Format {
template: String,
args: Vec<ParamExpr>,
},
Extract {
source: String,
field: String,
},
}Expand description
A transformation rule for computed parameters
Variants§
Concat(Vec<ParamExpr>)
Concatenate strings
Format
Format a template string
Extract
Extract a field from a JSON value
Trait Implementations§
Source§impl Clone for ComputeRule
impl Clone for ComputeRule
Source§fn clone(&self) -> ComputeRule
fn clone(&self) -> ComputeRule
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 ComputeRule
impl Debug for ComputeRule
Source§impl<'de> Deserialize<'de> for ComputeRule
impl<'de> Deserialize<'de> for ComputeRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ComputeRule
impl RefUnwindSafe for ComputeRule
impl Send for ComputeRule
impl Sync for ComputeRule
impl Unpin for ComputeRule
impl UnsafeUnpin for ComputeRule
impl UnwindSafe for ComputeRule
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