pub struct Function {
pub args: Option<Vec<Value>>,
pub name: Option<String>,
pub options: Option<HashMap<String, Value>>,
}Expand description
Represents an unevaluated scalar expression. For example, the expression like(user_name, "%alice%") is represented as: name: "like" args { field_reference: "user_name" } args { string_value: "%alice%" }
This type is not used in any activity, and only used as part of another schema.
Fields§
§args: Option<Vec<Value>>Optional. Ordered list of arguments the given function expects.
name: Option<String>Required. The name of the function to evaluate. Requires: * must be in snake case (lower case with underscore separator).
options: Option<HashMap<String, Value>>Optional. Optional named arguments that certain functions may support.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Function
impl<'de> Deserialize<'de> for Function
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 Part for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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