pub struct RawStmtQueryParams {
pub protocol_version: u32,
pub sql: String,
pub params: Vec<Value>,
pub transaction_id: Option<String>,
}Expand description
Raw prepared-statement query request parameters.
Execute the SQL string with bound parameters and return the result rows as
generic JSON objects. Use $1, $2, … (PostgreSQL) or ? (MySQL /
SQLite) as placeholders; parameters are bound in the order they appear in
the params array.
Fields§
§protocol_version: u32Protocol version (required in all requests).
sql: StringRaw SQL string containing parameter placeholders.
params: Vec<Value>Ordered list of parameter values to bind.
transaction_id: Option<String>Optional transaction ID.
Trait Implementations§
Source§impl Clone for RawStmtQueryParams
impl Clone for RawStmtQueryParams
Source§fn clone(&self) -> RawStmtQueryParams
fn clone(&self) -> RawStmtQueryParams
Returns a duplicate of the value. Read more
1.0.0 · 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 RawStmtQueryParams
impl Debug for RawStmtQueryParams
Source§impl<'de> Deserialize<'de> for RawStmtQueryParams
impl<'de> Deserialize<'de> for RawStmtQueryParams
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
Auto Trait Implementations§
impl Freeze for RawStmtQueryParams
impl RefUnwindSafe for RawStmtQueryParams
impl Send for RawStmtQueryParams
impl Sync for RawStmtQueryParams
impl Unpin for RawStmtQueryParams
impl UnsafeUnpin for RawStmtQueryParams
impl UnwindSafe for RawStmtQueryParams
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