pub struct SpgArgumentValue<'q> {
pub value: Value,
pub type_info: Option<SpgTypeInfo>,
pub _phantom: PhantomData<&'q ()>,
}Expand description
One bound argument. Wraps the engine-side value plus its
fixed SpgTypeInfo so the engine’s executor sees a
pre-coerced value (matches the engine’s Expr::Placeholder
→ params[N-1] substitution path that v6.1.1 wired up for
the pgwire extended-query protocol).
Fields§
§value: ValueOwned engine value. 'q lifetime is unused today but
reserved to match sqlx’s generic shape — future borrowed-
bind paths (large BYTEA / TEXT[]) can flow through
without a breaking change to the Arguments contract.
type_info: Option<SpgTypeInfo>The type the bind site claims for this value. Empty
when the bind reached the buffer via add_unchecked.
_phantom: PhantomData<&'q ()>Marker for the borrow lifetime.
Trait Implementations§
Source§impl<'q> Clone for SpgArgumentValue<'q>
impl<'q> Clone for SpgArgumentValue<'q>
Source§fn clone(&self) -> SpgArgumentValue<'q>
fn clone(&self) -> SpgArgumentValue<'q>
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<'q> Freeze for SpgArgumentValue<'q>
impl<'q> RefUnwindSafe for SpgArgumentValue<'q>
impl<'q> Send for SpgArgumentValue<'q>
impl<'q> Sync for SpgArgumentValue<'q>
impl<'q> Unpin for SpgArgumentValue<'q>
impl<'q> UnsafeUnpin for SpgArgumentValue<'q>
impl<'q> UnwindSafe for SpgArgumentValue<'q>
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,
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