pub struct QueryResponse {
pub meta: Vec<ColumnMeta>,
pub data: Vec<Value>,
pub rows: i64,
pub rows_before_limit_at_least: i64,
pub statistics: QueryStatistics,
pub credits: i64,
}Expand description
Response from query.
Fields§
§meta: Vec<ColumnMeta>Column metadata for each column in the result set.
data: Vec<Value>Result rows. Each row is a JSON object whose keys are the selected columns; shape varies per query.
rows: i64Number of rows returned in this response.
rows_before_limit_at_least: i64Total rows that matched the query before applying LIMIT; use for
pagination.
statistics: QueryStatisticsQuery execution statistics.
credits: i64Credits consumed by the query.
Trait Implementations§
Source§impl Clone for QueryResponse
impl Clone for QueryResponse
Source§fn clone(&self) -> QueryResponse
fn clone(&self) -> QueryResponse
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 QueryResponse
impl Debug for QueryResponse
Source§impl<'de> Deserialize<'de> for QueryResponse
impl<'de> Deserialize<'de> for QueryResponse
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 QueryResponse
impl RefUnwindSafe for QueryResponse
impl Send for QueryResponse
impl Sync for QueryResponse
impl Unpin for QueryResponse
impl UnsafeUnpin for QueryResponse
impl UnwindSafe for QueryResponse
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