pub struct SQLQuery {
pub sql: String,
pub args: Vec<(String, Rc<Value>)>,
}Expand description
We want to accumulate values that will later be substituted into a SQL statement execution.
This struct encapsulates the generated string and the initial argument list.
Additional user-supplied argument bindings, with their placeholders accumulated via
push_bind_param, will be appended to this argument list.
Fields§
§sql: String§args: Vec<(String, Rc<Value>)>These will eventually perhaps be rusqlite ToSql instances.
Auto Trait Implementations§
impl !Send for SQLQuery
impl !Sync for SQLQuery
impl Freeze for SQLQuery
impl RefUnwindSafe for SQLQuery
impl Unpin for SQLQuery
impl UnsafeUnpin for SQLQuery
impl UnwindSafe for SQLQuery
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> 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