[][src]Struct postgres_parser::nodes::NamedArgExpr

pub struct NamedArgExpr {
    pub arg: Option<Box<Expr>>,
    pub name: Option<String>,
    pub argnumber: i32,
    pub location: i32,
}

NamedArgExpr a named argument of a function

This node type can only appear in the args list of a FuncCall or FuncExpr node. We support pure positional call notation (no named arguments), named notation (all arguments are named), and mixed notation (unnamed arguments followed by named ones).

Parse analysis sets argnumber to the positional index of the argument, but doesn't rearrange the argument list.

The planner will convert argument lists to pure positional notation during expression preprocessing, so execution never sees a NamedArgExpr.

Fields

arg: Option<Box<Expr>>name: Option<String>argnumber: i32location: i32

Trait Implementations

impl Debug for NamedArgExpr[src]

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

impl Eq for NamedArgExpr[src]

impl PartialEq<NamedArgExpr> for NamedArgExpr[src]

impl Serialize for NamedArgExpr[src]

impl StructuralEq for NamedArgExpr[src]

impl StructuralPartialEq for NamedArgExpr[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.