pub enum FunctionReturn {
Trigger,
Void,
Type(ColumnTypeName),
Other(String),
}Variants§
Trigger
RETURNS TRIGGER — the row-level trigger function shape.
v7.12.4 ships exactly this for execution.
Void
RETURNS VOID. Parses; executor rejects in v7.12.4 unless
the function is unused (since v7.12.4 doesn’t ship scalar
function invocation).
Type(ColumnTypeName)
RETURNS <type> for any concrete data type. Reserved for
v7.12.5+’s scalar UDF surface.
Other(String)
RETURNS <ident> for types SPG doesn’t know — extension
types, RETURNS SETOF rows, RETURNS TABLE(…), etc.
Trait Implementations§
Source§impl Clone for FunctionReturn
impl Clone for FunctionReturn
Source§fn clone(&self) -> FunctionReturn
fn clone(&self) -> FunctionReturn
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 FunctionReturn
impl Debug for FunctionReturn
Source§impl PartialEq for FunctionReturn
impl PartialEq for FunctionReturn
Source§fn eq(&self, other: &FunctionReturn) -> bool
fn eq(&self, other: &FunctionReturn) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FunctionReturn
Auto Trait Implementations§
impl Freeze for FunctionReturn
impl RefUnwindSafe for FunctionReturn
impl Send for FunctionReturn
impl Sync for FunctionReturn
impl Unpin for FunctionReturn
impl UnsafeUnpin for FunctionReturn
impl UnwindSafe for FunctionReturn
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