pub trait QueryResult<Response>where
Response: DeserializeOwned,{
// Required method
fn query_result(self, response: &mut QueryResponse) -> Result<Response>;
// Provided method
fn stats(&self, response: &QueryResponse) -> Option<Stats> { ... }
}
Expand description
Represents a way to take a single query result from a list of responses
Required Methods§
Sourcefn query_result(self, response: &mut QueryResponse) -> Result<Response>
fn query_result(self, response: &mut QueryResponse) -> Result<Response>
Extracts and deserializes a query result from a query response
Provided Methods§
Sourcefn stats(&self, response: &QueryResponse) -> Option<Stats>
fn stats(&self, response: &QueryResponse) -> Option<Stats>
Extracts the statistics from a query response