pub enum ShowExpression {
Show 24 variants
Literal {
value: Box<RuleResultValue>,
},
Data {
name: String,
},
Rule {
name: String,
},
And {
operands: Vec<ShowExpression>,
},
Not {
operand: Box<ShowExpression>,
},
Arithmetic {
first: Box<ShowExpression>,
steps: Vec<ShowArithmeticStep>,
},
Comparison {
op: ComparisonComputation,
left: Box<ShowExpression>,
right: Box<ShowExpression>,
},
UnitConversion {
operand: Box<ShowExpression>,
targets: Vec<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>,
},
RangeBound {
bound: RangeBound,
operand: Box<ShowExpression>,
},
IsVeto {
operand: Box<ShowExpression>,
},
SpecMember {
base: String,
member: String,
},
Member {
base: Box<ShowExpression>,
member: String,
},
RowField {
field: String,
},
RowValue,
RowFieldValue {
field: String,
value: Box<ShowExpression>,
},
ListCommand {
list: Box<ShowExpression>,
command: ShowListCommand,
direction: Option<SortDirection>,
args: Vec<ShowExpression>,
},
}Expand description
Resolved expression on a Show rule branch.
Variants§
Literal
Fields
§
value: Box<RuleResultValue>Data
Rule
And
Fields
§
operands: Vec<ShowExpression>Not
Fields
§
operand: Box<ShowExpression>Arithmetic
Comparison
UnitConversion
Math
Veto
Now
DateRelative
DateCalendar
RangeLiteral
PastFutureRange
RangeContainment
RangeBound
IsVeto
Fields
§
operand: Box<ShowExpression>SpecMember
Member
RowField
RowValue
RowFieldValue
ListCommand
Fields
§
list: Box<ShowExpression>§
command: ShowListCommand§
direction: Option<SortDirection>§
args: Vec<ShowExpression>Trait Implementations§
Source§impl Clone for ShowExpression
impl Clone for ShowExpression
Source§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.