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