pub struct EvaluatorValue {
pub value_type: EvaluatorValueType,
pub bool_value: Option<bool>,
pub float_value: Option<f64>,
pub string_value: Option<DynamicString>,
pub regex_value: Option<Regex>,
pub timestamp_value: Option<i64>,
pub array_value: Option<HashMap<String, (usize, String)>>,
pub object_value: Option<HashMap<String, DynamicString>>,
}
Fields§
§value_type: EvaluatorValueType
§bool_value: Option<bool>
§float_value: Option<f64>
§string_value: Option<DynamicString>
§regex_value: Option<Regex>
§timestamp_value: Option<i64>
§array_value: Option<HashMap<String, (usize, String)>>
§object_value: Option<HashMap<String, DynamicString>>
Implementations§
Source§impl EvaluatorValue
impl EvaluatorValue
pub fn new(value_type: EvaluatorValueType) -> Self
pub fn null() -> Self
pub fn compile_regex(&mut self)
pub fn is_equal_to_dynamic_value(&self, other: &DynamicValue) -> bool
Trait Implementations§
Source§impl Debug for EvaluatorValue
impl Debug for EvaluatorValue
Source§impl<'de> Deserialize<'de> for EvaluatorValue
impl<'de> Deserialize<'de> for EvaluatorValue
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
Source§impl From<String> for EvaluatorValue
impl From<String> for EvaluatorValue
Source§impl From<Value> for EvaluatorValue
impl From<Value> for EvaluatorValue
Source§impl PartialEq for EvaluatorValue
impl PartialEq for EvaluatorValue
Auto Trait Implementations§
impl Freeze for EvaluatorValue
impl RefUnwindSafe for EvaluatorValue
impl Send for EvaluatorValue
impl Sync for EvaluatorValue
impl Unpin for EvaluatorValue
impl UnwindSafe for EvaluatorValue
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