pub struct FunctionOptions {
pub call_mode: CallMode,
pub is_async: bool,
pub is_batched: bool,
pub handler: Option<String>,
}Expand description
Options for configuring user-defined functions.
Fields§
§call_mode: CallModeWhether the function will be called when some of its arguments are null.
is_async: boolWhether the function is async. An async function would return a Promise.
is_batched: boolWhether the function accepts a batch of records as input.
handler: Option<String>The name of the function in JavaScript code to be called. If not set, the function name will be used.
Implementations§
Source§impl FunctionOptions
impl FunctionOptions
Sourcepub fn return_null_on_null_input(self) -> Self
pub fn return_null_on_null_input(self) -> Self
Sets the function to return null when some of its arguments are null.
See CallMode for more details.
Sourcepub fn async_mode(self) -> Self
pub fn async_mode(self) -> Self
Marks the function to be async JS function.
Trait Implementations§
Source§impl Clone for FunctionOptions
impl Clone for FunctionOptions
Source§fn clone(&self) -> FunctionOptions
fn clone(&self) -> FunctionOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 FunctionOptions
impl Debug for FunctionOptions
Source§impl Default for FunctionOptions
impl Default for FunctionOptions
Source§fn default() -> FunctionOptions
fn default() -> FunctionOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FunctionOptions
impl RefUnwindSafe for FunctionOptions
impl Send for FunctionOptions
impl Sync for FunctionOptions
impl Unpin for FunctionOptions
impl UnwindSafe for FunctionOptions
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