pub struct JsonKeysFunction;Expand description
JSON_KEYS function - returns the keys of a JSON object as a JSON array
Trait Implementations§
Source§impl Default for JsonKeysFunction
impl Default for JsonKeysFunction
Source§fn default() -> JsonKeysFunction
fn default() -> JsonKeysFunction
Returns the “default value” for a type. Read more
Source§impl ScalarFunction for JsonKeysFunction
impl ScalarFunction for JsonKeysFunction
Source§fn info(&self) -> FunctionInfo
fn info(&self) -> FunctionInfo
Get function information
Source§fn evaluate(&self, args: &[Value]) -> Result<Value>
fn evaluate(&self, args: &[Value]) -> Result<Value>
Evaluate the function with the given arguments
Source§fn clone_box(&self) -> Box<dyn ScalarFunction>
fn clone_box(&self) -> Box<dyn ScalarFunction>
Clone the function into a new instance
Source§fn native_fn1(&self) -> Option<NativeFn1>
fn native_fn1(&self) -> Option<NativeFn1>
Optional: Return a direct function pointer for single-arg functions.
When Some, compiler emits direct call (no dynamic dispatch).
Default is None (uses evaluate() with dynamic dispatch).
Auto Trait Implementations§
impl Freeze for JsonKeysFunction
impl RefUnwindSafe for JsonKeysFunction
impl Send for JsonKeysFunction
impl Sync for JsonKeysFunction
impl Unpin for JsonKeysFunction
impl UnwindSafe for JsonKeysFunction
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> 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