Struct sqlparser::ast::CreateFunctionBody
source · pub struct CreateFunctionBody {
pub language: Option<Located<Ident>>,
pub behavior: Option<FunctionBehavior>,
pub as_: Option<FunctionDefinition>,
pub return_: Option<Expr>,
pub using: Option<CreateFunctionUsing>,
}
Expand description
Postgres specific feature.
See Postgresdocs for more details
Fields§
§language: Option<Located<Ident>>
LANGUAGE lang_name
behavior: Option<FunctionBehavior>
IMMUTABLE | STABLE | VOLATILE
as_: Option<FunctionDefinition>
AS ‘definition’
Note that Hive’s AS class_name
is also parsed here.
return_: Option<Expr>
RETURN expression
using: Option<CreateFunctionUsing>
USING … (Hive only)
Trait Implementations§
source§impl Clone for CreateFunctionBody
impl Clone for CreateFunctionBody
source§fn clone(&self) -> CreateFunctionBody
fn clone(&self) -> CreateFunctionBody
Returns a copy 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 CreateFunctionBody
impl Debug for CreateFunctionBody
source§impl Default for CreateFunctionBody
impl Default for CreateFunctionBody
source§fn default() -> CreateFunctionBody
fn default() -> CreateFunctionBody
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateFunctionBody
impl<'de> Deserialize<'de> for CreateFunctionBody
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for CreateFunctionBody
impl Display for CreateFunctionBody
source§impl Hash for CreateFunctionBody
impl Hash for CreateFunctionBody
source§impl Ord for CreateFunctionBody
impl Ord for CreateFunctionBody
source§fn cmp(&self, other: &CreateFunctionBody) -> Ordering
fn cmp(&self, other: &CreateFunctionBody) -> Ordering
1.21.0 · 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<CreateFunctionBody> for CreateFunctionBody
impl PartialEq<CreateFunctionBody> for CreateFunctionBody
source§fn eq(&self, other: &CreateFunctionBody) -> bool
fn eq(&self, other: &CreateFunctionBody) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CreateFunctionBody> for CreateFunctionBody
impl PartialOrd<CreateFunctionBody> for CreateFunctionBody
source§fn partial_cmp(&self, other: &CreateFunctionBody) -> Option<Ordering>
fn partial_cmp(&self, other: &CreateFunctionBody) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more