Struct sqlparser::ast::CreateFunctionBody
source · pub struct CreateFunctionBody {
pub language: Option<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<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 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 for CreateFunctionBody
impl PartialEq 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 for CreateFunctionBody
impl PartialOrd 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 moreimpl Eq for CreateFunctionBody
impl StructuralEq for CreateFunctionBody
impl StructuralPartialEq for CreateFunctionBody
Auto Trait Implementations§
impl RefUnwindSafe for CreateFunctionBody
impl Send for CreateFunctionBody
impl Sync for CreateFunctionBody
impl Unpin for CreateFunctionBody
impl UnwindSafe for CreateFunctionBody
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