pub enum FunctionBody {
PlPgSql(PlPgSqlBlock),
Raw(String),
}Variants§
PlPgSql(PlPgSqlBlock)
v7.12.4 — parsed PL/pgSQL BEGIN … END block. The
trigger-function executor walks this directly without
re-parsing.
Raw(String)
Raw source text — parser couldn’t (or didn’t try to)
structure-parse the body. Used for LANGUAGE sql
functions and any PL/pgSQL body that contains v7.12.5+
features the v7.12.4 parser doesn’t yet recognise. The
executor returns an unsupported error when invoked.
Trait Implementations§
Source§impl Clone for FunctionBody
impl Clone for FunctionBody
Source§fn clone(&self) -> FunctionBody
fn clone(&self) -> FunctionBody
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 FunctionBody
impl Debug for FunctionBody
Source§impl PartialEq for FunctionBody
impl PartialEq for FunctionBody
Source§fn eq(&self, other: &FunctionBody) -> bool
fn eq(&self, other: &FunctionBody) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FunctionBody
Auto Trait Implementations§
impl Freeze for FunctionBody
impl RefUnwindSafe for FunctionBody
impl Send for FunctionBody
impl Sync for FunctionBody
impl Unpin for FunctionBody
impl UnsafeUnpin for FunctionBody
impl UnwindSafe for FunctionBody
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