pub enum Boolean {
IsNotNull {
value: PropertyValue,
},
IsNull {
value: PropertyValue,
},
IsNotEmpty {
value: PropertyValue,
},
IsEmpty {
value: PropertyValue,
},
Equal {
left: PropertyValue,
right: PropertyValue,
},
NotEqual {
left: PropertyValue,
right: PropertyValue,
},
Not {
of: Box<Boolean>,
},
Literal {
value: bool,
},
ListIsEmpty {
value: PropertyValue,
},
}
Variants
IsNotNull
Fields
value: PropertyValue
IsNull
Fields
value: PropertyValue
IsNotEmpty
Fields
value: PropertyValue
IsEmpty
Fields
value: PropertyValue
Equal
NotEqual
Not
Literal
Fields
value: bool
ListIsEmpty
Fields
value: PropertyValue
Implementations
sourceimpl Boolean
impl Boolean
pub fn to_condition(
&self,
line_number: usize,
doc: &TDoc<'_>
) -> Result<Condition>
pub fn boolean_left_right(
line_number: usize,
expr: &str,
doc_id: &str
) -> Result<(String, String, Option<String>)>
pub fn from_expression(
expr: &str,
doc: &TDoc<'_>,
arguments: &Map<Kind>,
left_right_resolved_property: (Option<PropertyValue>, Option<PropertyValue>),
line_number: usize
) -> Result<Self>
pub fn is_constant(&self) -> bool
pub fn is_arg_constant(&self) -> bool
pub fn eval(&self, line_number: usize, doc: &TDoc<'_>) -> Result<bool>
pub fn set_null(&self, line_number: usize, doc_id: &str) -> Result<bool>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Boolean
impl<'de> Deserialize<'de> for Boolean
sourcefn 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
sourceimpl PartialEq<Boolean> for Boolean
impl PartialEq<Boolean> for Boolean
impl StructuralPartialEq for Boolean
Auto Trait Implementations
impl RefUnwindSafe for Boolean
impl Send for Boolean
impl Sync for Boolean
impl Unpin for Boolean
impl UnwindSafe for Boolean
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more