pub struct StatementResult {
pub total: Option<i64>,
pub page_total: i64,
pub body: String,
pub response_headers: Option<Value>,
pub response_status: Option<i32>,
}Expand description
Parsed result from a CTE-wrapped statement.
This is the uniform shape that every backend must produce from the main query execution. The handler layer reads these fields to build the HTTP response.
Fields§
§total: Option<i64>§page_total: i64§body: String§response_headers: Option<Value>§response_status: Option<i32>Implementations§
Trait Implementations§
Source§impl Clone for StatementResult
impl Clone for StatementResult
Source§fn clone(&self) -> StatementResult
fn clone(&self) -> StatementResult
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 StatementResult
impl RefUnwindSafe for StatementResult
impl Send for StatementResult
impl Sync for StatementResult
impl Unpin for StatementResult
impl UnsafeUnpin for StatementResult
impl UnwindSafe for StatementResult
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