pub struct SqlFragment {
pub sql: String,
pub params: Vec<SqlParam>,
}Expand description
A SQL fragment plus its ordered parameters.
Fields§
§sql: String§params: Vec<SqlParam>Implementations§
Trait Implementations§
Source§impl Clone for SqlFragment
impl Clone for SqlFragment
Source§impl Debug for SqlFragment
impl Debug for SqlFragment
Source§impl Default for SqlFragment
impl Default for SqlFragment
Source§impl<'de> Deserialize<'de> for SqlFragment
impl<'de> Deserialize<'de> for SqlFragment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SqlFragment> for SqlStatement
impl From<SqlFragment> for SqlStatement
Source§fn from(fragment: SqlFragment) -> Self
fn from(fragment: SqlFragment) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SqlFragment
impl PartialEq for SqlFragment
Source§impl Serialize for SqlFragment
impl Serialize for SqlFragment
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§
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