pub struct AggregateOptions {
pub call_mode: CallMode,
pub is_async: bool,
}Expand description
Options for configuring user-defined aggregate 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.
Implementations§
Source§impl AggregateOptions
impl AggregateOptions
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 AggregateOptions
impl Clone for AggregateOptions
Source§fn clone(&self) -> AggregateOptions
fn clone(&self) -> AggregateOptions
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 AggregateOptions
impl Debug for AggregateOptions
Source§impl Default for AggregateOptions
impl Default for AggregateOptions
Source§fn default() -> AggregateOptions
fn default() -> AggregateOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AggregateOptions
impl RefUnwindSafe for AggregateOptions
impl Send for AggregateOptions
impl Sync for AggregateOptions
impl Unpin for AggregateOptions
impl UnwindSafe for AggregateOptions
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