pub struct SqlStatement {
pub sql: String,
pub params: Vec<SqlParam>,
}Expand description
A complete SQL statement plus its ordered parameters.
Fields§
§sql: String§params: Vec<SqlParam>Implementations§
Source§impl SqlStatement
impl SqlStatement
pub fn new(sql: impl Into<String>) -> SqlStatement
Trait Implementations§
Source§impl Clone for SqlStatement
impl Clone for SqlStatement
Source§fn clone(&self) -> SqlStatement
fn clone(&self) -> SqlStatement
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 SqlStatement
impl Debug for SqlStatement
Source§impl Default for SqlStatement
impl Default for SqlStatement
Source§fn default() -> SqlStatement
fn default() -> SqlStatement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SqlStatement
impl<'de> Deserialize<'de> for SqlStatement
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SqlStatement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SqlStatement, <__D as Deserializer<'de>>::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) -> SqlStatement
fn from(fragment: SqlFragment) -> SqlStatement
Converts to this type from the input type.
Source§impl PartialEq for SqlStatement
impl PartialEq for SqlStatement
Source§impl Serialize for SqlStatement
impl Serialize for SqlStatement
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SqlStatement
Auto Trait Implementations§
impl Freeze for SqlStatement
impl RefUnwindSafe for SqlStatement
impl Send for SqlStatement
impl Sync for SqlStatement
impl Unpin for SqlStatement
impl UnsafeUnpin for SqlStatement
impl UnwindSafe for SqlStatement
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