pub enum ValueEntity {
Show 34 variants
Lit {
value: PrimitiveValue,
},
Concat {
a: Vec<ValueReference>,
},
ReadInput {},
ReadOutput {},
ReadLists {},
ReadVariables {},
ReadRandoms {},
ReadFlags {},
ReadParam {},
NetworkRequest {
server: String,
route: ValueReference,
method: NetworkMethod,
allowed_status: Option<Vec<u16>>,
json: Option<Vec<(ValueReference, ValueReference)>>,
},
View {
perspective: String,
mapping: MappingReference,
},
CoremapItem {
mapping: Coremapping,
keys: Vec<ValueReference>,
},
Mapitem {
mapping: MappingReference,
keys: Vec<ValueReference>,
},
Add {
left: ValueReference,
right: ValueReference,
},
Sub {
left: ValueReference,
right: ValueReference,
},
Mul {
left: ValueReference,
right: ValueReference,
},
Truediv {
left: ValueReference,
right: ValueReference,
},
Floordiv {
left: ValueReference,
right: ValueReference,
},
Mod {
left: ValueReference,
right: ValueReference,
},
Pow {
left: ValueReference,
right: ValueReference,
},
Neg {
value: ValueReference,
},
Floor {
value: ValueReference,
},
Ceil {
value: ValueReference,
},
Round {
value: ValueReference,
},
Abs {
value: ValueReference,
},
FirstCaptureOfRegex {
pattern: ValueReference,
sup: ValueReference,
group: Option<ValueReference>,
},
Catch {
value: ValueReference,
error: cerr,
only_if: Option<EntityId<CriterionEntity>>,
default_value: Option<ValueReference>,
action: Option<EntityId<ActionEntity>>,
},
ToUpper {
value: ValueReference,
},
ToLower {
value: ValueReference,
},
TrimStart {
value: ValueReference,
},
TrimEnd {
value: ValueReference,
},
Trim {
value: ValueReference,
},
IfThenElse {
if_: EntityId<CriterionEntity>,
then_: ValueReference,
else_: ValueReference,
},
Property {
perspective: PropertyPerspective,
value: ValueReference,
},
}Variants§
Lit
Fields
§
value: PrimitiveValueConcat
Fields
§
a: Vec<ValueReference>ReadInput
ReadOutput
ReadLists
ReadVariables
ReadRandoms
ReadFlags
ReadParam
NetworkRequest
Fields
§
route: ValueReference§
method: NetworkMethod§
json: Option<Vec<(ValueReference, ValueReference)>>View
CoremapItem
Mapitem
Add
Sub
Mul
Truediv
Floordiv
Mod
Pow
Neg
Fields
§
value: ValueReferenceFloor
Fields
§
value: ValueReferenceCeil
Fields
§
value: ValueReferenceRound
Fields
§
value: ValueReferenceAbs
Fields
§
value: ValueReferenceFirstCaptureOfRegex
Catch
Fields
§
value: ValueReference§
only_if: Option<EntityId<CriterionEntity>>§
default_value: Option<ValueReference>§
action: Option<EntityId<ActionEntity>>ToUpper
Fields
§
value: ValueReferenceToLower
Fields
§
value: ValueReferenceTrimStart
Fields
§
value: ValueReferenceTrimEnd
Fields
§
value: ValueReferenceTrim
Fields
§
value: ValueReferenceIfThenElse
Property
Implementations§
Source§impl ValueEntity
impl ValueEntity
pub fn machine(&self) -> Machine<RuntimeValue>
Trait Implementations§
Source§impl Clone for ValueEntity
impl Clone for ValueEntity
Source§fn clone(&self) -> ValueEntity
fn clone(&self) -> ValueEntity
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 ValueEntity
impl Debug for ValueEntity
Source§impl<'de> Deserialize<'de> for ValueEntity
impl<'de> Deserialize<'de> for ValueEntity
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<ValueEntity> for Entity
impl From<ValueEntity> for Entity
Source§fn from(value: ValueEntity) -> Self
fn from(value: ValueEntity) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ValueEntity
impl PartialEq for ValueEntity
Source§fn eq(&self, other: &ValueEntity) -> bool
fn eq(&self, other: &ValueEntity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ValueEntity
impl PartialOrd for ValueEntity
Source§impl Serialize for ValueEntity
impl Serialize for ValueEntity
impl StructuralPartialEq for ValueEntity
Auto Trait Implementations§
impl Freeze for ValueEntity
impl RefUnwindSafe for ValueEntity
impl Send for ValueEntity
impl Sync for ValueEntity
impl Unpin for ValueEntity
impl UnsafeUnpin for ValueEntity
impl UnwindSafe for ValueEntity
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more