pub struct QueryResult {
pub result: i64,
pub elements: Vec<DbElement>,
}Expand description
Universal database result. Successful
execution of a query will always yield
this type. The result field is a numerical
representation of the result while the
elements are the list of DbElements
with database ids and properties (key-value pairs).
Fields§
§result: i64Query result
elements: Vec<DbElement>List of elements yielded by the query possibly with a list of properties.
Implementations§
Trait Implementations§
source§impl Clone for QueryResult
impl Clone for QueryResult
source§fn clone(&self) -> QueryResult
fn clone(&self) -> QueryResult
Returns a copy of the value. Read more
1.6.0 · 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 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 From<&QueryResult> for QueryIds
impl From<&QueryResult> for QueryIds
source§fn from(value: &QueryResult) -> Self
fn from(value: &QueryResult) -> Self
Converts to this type from the input type.
source§impl From<QueryResult> for QueryIds
impl From<QueryResult> for QueryIds
source§fn from(value: QueryResult) -> Self
fn from(value: QueryResult) -> Self
Converts to this type from the input type.
source§impl Ord for QueryResult
impl Ord for QueryResult
source§fn cmp(&self, other: &QueryResult) -> Ordering
fn cmp(&self, other: &QueryResult) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for QueryResult
impl PartialEq for QueryResult
source§impl PartialOrd for QueryResult
impl PartialOrd for QueryResult
source§impl<T: DbUserValue<ValueType = T>> TryInto<Vec<T>> for QueryResult
impl<T: DbUserValue<ValueType = T>> TryInto<Vec<T>> for QueryResult
impl Eq for QueryResult
impl StructuralPartialEq for QueryResult
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)