pub enum ApplicationFunctionKind {
Scalar,
Aggregate,
Window,
}Expand description
Kind of application-defined function selected for one SQL call.
Application registrations share one namespace across scalar, aggregate,
and window functions. A window registration is also callable through the
ordinary aggregate form, but remains distinguishable here so callers can
validate whether an OVER clause is legal.
Variants§
Scalar
A scalar function evaluated once per input row.
Aggregate
An ordinary aggregate function evaluated once per group.
Window
A window function, callable both as an aggregate and with OVER.
Implementations§
Source§impl ApplicationFunctionKind
impl ApplicationFunctionKind
Sourcepub const fn label(self) -> &'static str
pub const fn label(self) -> &'static str
Lowercase SQL-facing label used in misuse diagnostics.
Sourcepub const fn is_aggregate_callable(self) -> bool
pub const fn is_aggregate_callable(self) -> bool
Whether the selected registration has an ordinary aggregate call form.
Sourcepub const fn is_window_callable(self) -> bool
pub const fn is_window_callable(self) -> bool
Whether the selected registration may be used with OVER.
Trait Implementations§
Source§impl Clone for ApplicationFunctionKind
impl Clone for ApplicationFunctionKind
Source§fn clone(&self) -> ApplicationFunctionKind
fn clone(&self) -> ApplicationFunctionKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ApplicationFunctionKind
Source§impl Debug for ApplicationFunctionKind
impl Debug for ApplicationFunctionKind
impl Eq for ApplicationFunctionKind
Source§impl Hash for ApplicationFunctionKind
impl Hash for ApplicationFunctionKind
Source§impl Ord for ApplicationFunctionKind
impl Ord for ApplicationFunctionKind
Source§fn cmp(&self, other: &ApplicationFunctionKind) -> Ordering
fn cmp(&self, other: &ApplicationFunctionKind) -> Ordering
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 PartialEq for ApplicationFunctionKind
impl PartialEq for ApplicationFunctionKind
Source§impl PartialOrd for ApplicationFunctionKind
impl PartialOrd for ApplicationFunctionKind
impl StructuralPartialEq for ApplicationFunctionKind
Auto Trait Implementations§
impl Freeze for ApplicationFunctionKind
impl RefUnwindSafe for ApplicationFunctionKind
impl Send for ApplicationFunctionKind
impl Sync for ApplicationFunctionKind
impl Unpin for ApplicationFunctionKind
impl UnsafeUnpin for ApplicationFunctionKind
impl UnwindSafe for ApplicationFunctionKind
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