pub struct ScalarProjection {
pub sql: Cow<'static, str>,
pub params: Vec<FilterValue>,
pub alias: &'static str,
}Expand description
A scalar-subquery projection added to a SELECT clause, emitted as
(<sql>) AS <alias>. The alias is a codegen-controlled
&'static str — never user input — so it can be safely interpolated
into SQL after identifier quoting.
Fields§
§sql: Cow<'static, str>SQL fragment with {N} placeholders.
params: Vec<FilterValue>Parameter values referenced by the {N} placeholders.
alias: &'static strOutput column alias.
Implementations§
Trait Implementations§
Source§impl Clone for ScalarProjection
impl Clone for ScalarProjection
Source§fn clone(&self) -> ScalarProjection
fn clone(&self) -> ScalarProjection
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 ScalarProjection
impl RefUnwindSafe for ScalarProjection
impl Send for ScalarProjection
impl Sync for ScalarProjection
impl Unpin for ScalarProjection
impl UnsafeUnpin for ScalarProjection
impl UnwindSafe for ScalarProjection
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