pub struct PLpgSQLVar {
pub name: String,
pub type_name: String,
pub type_reference: Option<RoutineColumnTypeReference>,
pub default: Option<Expr>,
pub constant: bool,
pub not_null: bool,
pub cursor: Option<PLpgSQLCursor>,
pub lineno: Option<i64>,
}Expand description
Scalar PL/pgSQL variable (declared variable, parameter, loop
counter, or an internal compiler temporary).
Fields§
§name: String§type_name: StringNormalized type name (integer, text, …). The engine resolves
catalog-backed references such as %TYPE before execution.
type_reference: Option<RoutineColumnTypeReference>Exact relation-column identity emitted by the PL/pgSQL parser for a table-backed %TYPE declaration.
default: Option<Expr>§constant: bool§not_null: bool§cursor: Option<PLpgSQLCursor>Definition of a bound cursor declared with CURSOR (...) FOR query.
lineno: Option<i64>Source line of the declaration; used to disambiguate loop variables that shadow outer names.
Trait Implementations§
Source§impl Clone for PLpgSQLVar
impl Clone for PLpgSQLVar
Source§fn clone(&self) -> PLpgSQLVar
fn clone(&self) -> PLpgSQLVar
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 moreAuto Trait Implementations§
impl Freeze for PLpgSQLVar
impl RefUnwindSafe for PLpgSQLVar
impl Send for PLpgSQLVar
impl Sync for PLpgSQLVar
impl Unpin for PLpgSQLVar
impl UnsafeUnpin for PLpgSQLVar
impl UnwindSafe for PLpgSQLVar
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more