pub enum ShowExpression {
Show 17 variants
Literal(Box<RuleResultValue>),
Data {
name: String,
},
Rule {
name: String,
},
And {
left: Box<ShowExpression>,
right: Box<ShowExpression>,
},
Not {
operand: Box<ShowExpression>,
},
Arithmetic {
op: ArithmeticComputation,
left: Box<ShowExpression>,
right: Box<ShowExpression>,
},
Comparison {
op: ComparisonComputation,
left: Box<ShowExpression>,
right: Box<ShowExpression>,
},
UnitConversion {
operand: Box<ShowExpression>,
target: ShowConversionTarget,
},
Math {
op: MathematicalComputation,
operand: Box<ShowExpression>,
},
Veto {
message: Option<String>,
},
Now,
DateRelative {
kind: DateRelativeKind,
operand: Box<ShowExpression>,
},
DateCalendar {
kind: DateCalendarKind,
unit: CalendarPeriodUnit,
operand: Box<ShowExpression>,
},
RangeLiteral {
from: Box<ShowExpression>,
to: Box<ShowExpression>,
},
PastFutureRange {
kind: DateRelativeKind,
operand: Box<ShowExpression>,
},
RangeContainment {
value: Box<ShowExpression>,
range: Box<ShowExpression>,
},
IsVeto {
operand: Box<ShowExpression>,
},
}Expand description
Resolved expression tree for Show branches (tag = "type" on the API mirror).
Variants§
Literal(Box<RuleResultValue>)
Data
Rule
And
Not
Fields
§
operand: Box<ShowExpression>Arithmetic
Comparison
UnitConversion
Math
Veto
Now
DateRelative
DateCalendar
RangeLiteral
PastFutureRange
RangeContainment
IsVeto
Fields
§
operand: Box<ShowExpression>Trait Implementations§
Source§impl Clone for ShowExpression
impl Clone for ShowExpression
Source§fn clone(&self) -> ShowExpression
fn clone(&self) -> ShowExpression
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShowExpression
impl Debug for ShowExpression
Source§impl<'de> Deserialize<'de> for ShowExpression
impl<'de> Deserialize<'de> for ShowExpression
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
impl Eq for ShowExpression
Source§impl From<&ShowExpression> for ShowExpression
impl From<&ShowExpression> for ShowExpression
Source§fn from(expression: &DomainShowExpression) -> Self
fn from(expression: &DomainShowExpression) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ShowExpression
impl PartialEq for ShowExpression
Source§impl Serialize for ShowExpression
impl Serialize for ShowExpression
impl StructuralPartialEq for ShowExpression
Auto Trait Implementations§
impl Freeze for ShowExpression
impl RefUnwindSafe for ShowExpression
impl Send for ShowExpression
impl Sync for ShowExpression
impl Unpin for ShowExpression
impl UnsafeUnpin for ShowExpression
impl UnwindSafe for ShowExpression
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.