pub enum PureFn {
Eq,
Ne,
Not,
And,
Or,
Concat,
Len,
Coalesce,
JsonPath,
RegexMatch,
}Expand description
The closed pure-function whitelist (spine §7 / A.4, 02 §8.2).
Variants§
Eq
(T, T) → boolean
Ne
(T, T) → boolean
Not
(boolean) → boolean
And
(boolean…) → boolean (arity ≥ 2)
Or
(boolean…) → boolean (arity ≥ 2)
Concat
(string…) → string (arity ≥ 1)
Len
(string | array) → number
Coalesce
(T?, …, T) → T — first non-absent value (arity ≥ 2)
JsonPath
(any, string) → any — path must be a literal string
RegexMatch
(string, string[, string]) → boolean — pattern/flags must be literals
Trait Implementations§
impl Copy for PureFn
Source§impl<'de> Deserialize<'de> for PureFn
impl<'de> Deserialize<'de> for PureFn
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 PureFn
Source§impl JsonSchema for PureFn
impl JsonSchema for PureFn
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for PureFn
impl Ord for PureFn
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for PureFn
impl PartialOrd for PureFn
impl StructuralPartialEq for PureFn
Auto Trait Implementations§
impl Freeze for PureFn
impl RefUnwindSafe for PureFn
impl Send for PureFn
impl Sync for PureFn
impl Unpin for PureFn
impl UnsafeUnpin for PureFn
impl UnwindSafe for PureFn
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