pub struct ParamSpec {
pub var_id: Option<VarId>,
pub display_name: Option<String>,
pub name: String,
pub position: usize,
pub occurrences: Vec<usize>,
pub rust_type: Option<&'static str>,
pub sql_type: Option<String>,
pub source: ParamSource,
}Expand description
Metadata for one logical planned SQL parameter.
Fields§
§var_id: Option<VarId>Stable placeholder identity for var(...) parameters.
display_name: Option<String>Optional user-facing placeholder name.
name: StringStable parameter name.
position: usizeOne-based first placeholder position in the rendered SQL.
occurrences: Vec<usize>Every one-based placeholder position for this logical parameter.
rust_type: Option<&'static str>Rust type name inferred from the expression context.
sql_type: Option<String>Optional SQL type hint reserved for future code generation.
source: ParamSourceWhether this parameter came from val(...) or var(...).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParamSpec
impl RefUnwindSafe for ParamSpec
impl Send for ParamSpec
impl Sync for ParamSpec
impl Unpin for ParamSpec
impl UnsafeUnpin for ParamSpec
impl UnwindSafe for ParamSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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