pub enum CreateAggregateArgs {
Legacy,
Star,
List(Vec<OperateFunctionArg>),
OrderedSet {
direct: Vec<OperateFunctionArg>,
aggregated: Vec<OperateFunctionArg>,
},
}Expand description
The argument list of a CreateAggregate statement.
Variants§
Legacy
No argument-list parentheses: the historical form that packs everything,
usually including a BASETYPE option, into a single list.
Star
The wildcard form (*), used by zero-argument aggregates such as
count(*).
List(Vec<OperateFunctionArg>)
An explicit argument list: (NUMERIC),
(input INT, VARIADIC tail TEXT).
OrderedSet
PostgreSQL ordered-set form: args before ORDER BY are direct args.
Fields
§
direct: Vec<OperateFunctionArg>Arguments before ORDER BY.
§
aggregated: Vec<OperateFunctionArg>Arguments after ORDER BY.
Trait Implementations§
Source§impl Clone for CreateAggregateArgs
impl Clone for CreateAggregateArgs
Source§fn clone(&self) -> CreateAggregateArgs
fn clone(&self) -> CreateAggregateArgs
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 moreSource§impl Debug for CreateAggregateArgs
impl Debug for CreateAggregateArgs
impl Eq for CreateAggregateArgs
Source§impl Hash for CreateAggregateArgs
impl Hash for CreateAggregateArgs
Source§impl Ord for CreateAggregateArgs
impl Ord for CreateAggregateArgs
Source§fn cmp(&self, other: &CreateAggregateArgs) -> Ordering
fn cmp(&self, other: &CreateAggregateArgs) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CreateAggregateArgs
impl PartialEq for CreateAggregateArgs
Source§impl PartialOrd for CreateAggregateArgs
impl PartialOrd for CreateAggregateArgs
Source§impl Spanned for CreateAggregateArgs
impl Spanned for CreateAggregateArgs
impl StructuralPartialEq for CreateAggregateArgs
Auto Trait Implementations§
impl Freeze for CreateAggregateArgs
impl RefUnwindSafe for CreateAggregateArgs
impl Send for CreateAggregateArgs
impl Sync for CreateAggregateArgs
impl Unpin for CreateAggregateArgs
impl UnsafeUnpin for CreateAggregateArgs
impl UnwindSafe for CreateAggregateArgs
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