[][src]Struct postgres_parser::nodes::FuncCall

pub struct FuncCall {
    pub funcname: Option<Vec<Node>>,
    pub args: Option<Vec<Node>>,
    pub agg_order: Option<Vec<Node>>,
    pub agg_filter: Option<Box<Node>>,
    pub agg_within_group: bool,
    pub agg_star: bool,
    pub agg_distinct: bool,
    pub func_variadic: bool,
    pub over: Option<Box<WindowDef>>,
    pub location: i32,
}

FuncCall a function or aggregate invocation

agg_order (if not NIL) indicates we saw 'foo(... ORDER BY ...)', or if agg_within_group is true, it was 'foo(...) WITHIN GROUP (ORDER BY ...)'. agg_star indicates we saw a 'foo(*)' construct, while agg_distinct indicates we saw 'foo(DISTINCT ...)'. In any of these cases, the construct must be an aggregate call. Otherwise, it might be either an aggregate or some other kind of function. However, if FILTER or OVER is present it had better be an aggregate or window function.

Normally, you'd initialize this via makeFuncCall() and then only change the parts of the struct its defaults don't match afterwards, as needed.

Fields

funcname: Option<Vec<Node>>args: Option<Vec<Node>>agg_order: Option<Vec<Node>>agg_filter: Option<Box<Node>>agg_within_group: boolagg_star: boolagg_distinct: boolfunc_variadic: boolover: Option<Box<WindowDef>>location: i32

Trait Implementations

impl Debug for FuncCall[src]

impl<'de> Deserialize<'de> for FuncCall[src]

impl Eq for FuncCall[src]

impl PartialEq<FuncCall> for FuncCall[src]

impl Serialize for FuncCall[src]

impl StructuralEq for FuncCall[src]

impl StructuralPartialEq for FuncCall[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.