pub struct ConversionState {
pub processing_state: HashMap<String, Value>,
pub deferred: Vec<Box<dyn DeferredExpression>>,
}Expand description
Per-condition conversion state carried through the conversion of a single rule condition.
Fields§
§processing_state: HashMap<String, Value>Key-value state inherited from pipeline SetState transformations.
deferred: Vec<Box<dyn DeferredExpression>>Deferred query parts to be appended after the main condition.
Implementations§
Source§impl ConversionState
impl ConversionState
pub fn new(processing_state: HashMap<String, Value>) -> Self
pub fn add_deferred(&mut self, expr: Box<dyn DeferredExpression>)
pub fn has_deferred(&self) -> bool
pub fn get_state_str(&self, key: &str) -> Option<&str>
Trait Implementations§
Source§impl Debug for ConversionState
impl Debug for ConversionState
Source§impl Default for ConversionState
impl Default for ConversionState
Source§fn default() -> ConversionState
fn default() -> ConversionState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConversionState
impl !RefUnwindSafe for ConversionState
impl Send for ConversionState
impl Sync for ConversionState
impl Unpin for ConversionState
impl UnsafeUnpin for ConversionState
impl !UnwindSafe for ConversionState
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