Struct SqlStatementRequest
pub struct SqlStatementRequest {
pub sql: String,
pub args: SqlArgs,
pub want_rows: bool,
}Fields§
§sql: String§args: SqlArgs§want_rows: boolImplementations§
§impl SqlStatementRequest
impl SqlStatementRequest
pub fn to_wire_json(&self) -> Result<Value, StatementRunError>
pub fn to_wire_json(&self) -> Result<Value, StatementRunError>
Canonical public-wire representation used when binding an idempotency key to the exact
logical request. Named arguments are backed by a BTreeMap, so serializing this value is
deterministic across retries and processes.
pub fn from_wire_json( value: &Value, ) -> Result<SqlStatementRequest, StatementRunError>
Trait Implementations§
§impl Clone for SqlStatementRequest
impl Clone for SqlStatementRequest
§fn clone(&self) -> SqlStatementRequest
fn clone(&self) -> SqlStatementRequest
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 moreAuto Trait Implementations§
impl Freeze for SqlStatementRequest
impl RefUnwindSafe for SqlStatementRequest
impl Send for SqlStatementRequest
impl Sync for SqlStatementRequest
impl Unpin for SqlStatementRequest
impl UnsafeUnpin for SqlStatementRequest
impl UnwindSafe for SqlStatementRequest
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