pub struct SqlFragment {
pub sql: String,
pub params: Vec<Value>,
}Expand description
SQL text plus the positional parameters introduced by that text.
Fields§
§sql: String§params: Vec<Value>Implementations§
Trait Implementations§
Source§impl Clone for SqlFragment
impl Clone for SqlFragment
Source§fn clone(&self) -> SqlFragment
fn clone(&self) -> SqlFragment
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 moreSource§impl Debug for SqlFragment
impl Debug for SqlFragment
Source§impl Default for SqlFragment
impl Default for SqlFragment
Source§fn default() -> SqlFragment
fn default() -> SqlFragment
Returns the “default value” for a type. Read more
Source§impl PartialEq for SqlFragment
impl PartialEq for SqlFragment
Source§fn eq(&self, other: &SqlFragment) -> bool
fn eq(&self, other: &SqlFragment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SqlFragment
Auto Trait Implementations§
impl Freeze for SqlFragment
impl RefUnwindSafe for SqlFragment
impl Send for SqlFragment
impl Sync for SqlFragment
impl Unpin for SqlFragment
impl UnsafeUnpin for SqlFragment
impl UnwindSafe for SqlFragment
Blanket Implementations§
impl<T> Allocation for T
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