pub struct QueryResult {
pub columns: Vec<String>,
pub rows: Vec<Row>,
pub affected_rows: u32,
pub last_insert_id: Option<i64>,
pub execution_time_ms: f64,
}Fields§
§columns: Vec<String>§rows: Vec<Row>§affected_rows: u32§last_insert_id: Option<i64>§execution_time_ms: f64Trait Implementations§
Source§impl Debug for QueryResult
impl Debug for QueryResult
Source§impl<'de> Deserialize<'de> for QueryResult
impl<'de> Deserialize<'de> for QueryResult
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 FromWasmAbi for QueryResultwhere
Self: DeserializeOwned,
impl FromWasmAbi for QueryResultwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for QueryResultwhere
Self: Serialize,
impl IntoWasmAbi for QueryResultwhere
Self: Serialize,
Source§impl OptionFromWasmAbi for QueryResultwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for QueryResultwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for QueryResultwhere
Self: Serialize,
impl OptionIntoWasmAbi for QueryResultwhere
Self: Serialize,
Source§impl Serialize for QueryResult
impl Serialize for QueryResult
Source§impl Tsify for QueryResult
impl Tsify for QueryResult
const DECL: &'static str = "export interface QueryResult {\n columns: string[];\n rows: Row[];\n affectedRows: number;\n lastInsertId: number | null;\n executionTimeMs: number;\n}"
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Auto Trait Implementations§
impl Freeze for QueryResult
impl RefUnwindSafe for QueryResult
impl Send for QueryResult
impl Sync for QueryResult
impl Unpin for QueryResult
impl UnwindSafe for QueryResult
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
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.