pub struct QueryResult<T> {
pub data: Vec<T>,
pub total: Option<u64>,
}Expand description
Query result wrapper
Contains query results with optional total count for pagination support.
§Examples
use libsql_orm::QueryResult;
let result = QueryResult::new(vec!["item1", "item2"]);
let result_with_total = QueryResult::with_total(vec!["item1", "item2"], 100);Fields§
§data: Vec<T>§total: Option<u64>Implementations§
Source§impl<T> QueryResult<T>
impl<T> QueryResult<T>
Auto Trait Implementations§
impl<T> Freeze for QueryResult<T>
impl<T> RefUnwindSafe for QueryResult<T>where
T: RefUnwindSafe,
impl<T> Send for QueryResult<T>where
T: Send,
impl<T> Sync for QueryResult<T>where
T: Sync,
impl<T> Unpin for QueryResult<T>where
T: Unpin,
impl<T> UnwindSafe for QueryResult<T>where
T: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request