Enum ftd::p2::Boolean [−][src]
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
pub fn to_condition(
&self,
line_number: usize,
all_locals: &mut Map,
arguments: &BTreeMap<String, Value>,
doc_id: &str
) -> 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: &BTreeMap<String, Kind>,
left_right_resolved_property: (Option<PropertyValue>, Option<PropertyValue>),
line_number: usize
) -> Result<Self>
Trait Implementations
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 RefUnwindSafe for Boolean
impl UnwindSafe for Boolean
Blanket Implementations
Mutably borrows from an owned value. Read more