pub struct PlPgSqlDeclare {
pub name: String,
pub ty: FunctionArgType,
pub default: Option<Expr>,
}Expand description
v7.12.6 — single DECLARE entry: variable name + declared
type + optional initialiser. Variables default to SQL NULL
when no init is given (matches PG).
Fields§
§name: String§ty: FunctionArgTypeDeclared SQL type (mapped to ColumnTypeName where SPG
knows it; raw text otherwise).
default: Option<Expr>Trait Implementations§
Source§impl Clone for PlPgSqlDeclare
impl Clone for PlPgSqlDeclare
Source§fn clone(&self) -> PlPgSqlDeclare
fn clone(&self) -> PlPgSqlDeclare
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 PlPgSqlDeclare
impl Debug for PlPgSqlDeclare
Source§impl PartialEq for PlPgSqlDeclare
impl PartialEq for PlPgSqlDeclare
Source§fn eq(&self, other: &PlPgSqlDeclare) -> bool
fn eq(&self, other: &PlPgSqlDeclare) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlPgSqlDeclare
Auto Trait Implementations§
impl Freeze for PlPgSqlDeclare
impl RefUnwindSafe for PlPgSqlDeclare
impl Send for PlPgSqlDeclare
impl Sync for PlPgSqlDeclare
impl Unpin for PlPgSqlDeclare
impl UnsafeUnpin for PlPgSqlDeclare
impl UnwindSafe for PlPgSqlDeclare
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