pub struct QueryResult {
pub datasource: Option<String>,
pub columns: Option<Vec<String>>,
pub metadata: Option<Vec<QueryMetadata>>,
pub rows: Option<Vec<Vec<Value>>>,
pub num_rows: Option<u64>,
pub num_columns: Option<u32>,
pub from_cache: Option<bool>,
}Expand description
Contains the results from a dataset query
Fields§
§datasource: Option<String>The associated dataset TODO This should be dataset (consistency)
columns: Option<Vec<String>>The result set column names
metadata: Option<Vec<QueryMetadata>>Metadata about the resultset rows and columns
rows: Option<Vec<Vec<Value>>>The raw row data from the result set
num_rows: Option<u64>The number of rows in the result set
num_columns: Option<u32>The number of columns in the result set
from_cache: Option<bool>Whether this result set was served from cache
Trait Implementations§
Source§impl Debug for QueryResult
impl Debug for QueryResult
Source§impl Default for QueryResult
impl Default for QueryResult
Source§fn default() -> QueryResult
fn default() -> QueryResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QueryResultwhere
QueryResult: Default,
impl<'de> Deserialize<'de> for QueryResultwhere
QueryResult: Default,
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 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