pub struct FunctionArg {
pub mode: FunctionArgMode,
pub name: Option<String>,
pub ty: FunctionArgType,
}Expand description
v7.12.4 — one positional argument to a CREATE FUNCTION.
Fields§
§mode: FunctionArgModeIN / OUT / INOUT mode. v7.12.4 only accepts IN
(the default); OUT / INOUT parse but the executor
refuses them.
name: Option<String>Optional arg name. Trigger functions traditionally don’t
name their args (they read NEW/OLD instead), so None is
the common case.
ty: FunctionArgTypeDeclared type, normalised to the SPG DataType mapping
where one exists. Unknown / extension types parse as a
raw string under FunctionArgType::Raw.
Trait Implementations§
Source§impl Clone for FunctionArg
impl Clone for FunctionArg
Source§fn clone(&self) -> FunctionArg
fn clone(&self) -> FunctionArg
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 FunctionArg
impl Debug for FunctionArg
Source§impl PartialEq for FunctionArg
impl PartialEq for FunctionArg
Source§fn eq(&self, other: &FunctionArg) -> bool
fn eq(&self, other: &FunctionArg) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FunctionArg
Auto Trait Implementations§
impl Freeze for FunctionArg
impl RefUnwindSafe for FunctionArg
impl Send for FunctionArg
impl Sync for FunctionArg
impl Unpin for FunctionArg
impl UnsafeUnpin for FunctionArg
impl UnwindSafe for FunctionArg
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