pub struct CountQuery {
pub inner: Box<Query>,
}
Expand description
Counts the number of items returned from a query.
§Examples
use indradb::{AllVertexQuery, CountQueryExt};
// A query to return the total number of vertices in the database.
let q = AllVertexQuery.count();
Fields§
§inner: Box<Query>
The query to export.
Implementations§
Source§impl CountQuery
impl CountQuery
Sourcepub fn new(inner: Box<Query>) -> ValidationResult<Self>
pub fn new(inner: Box<Query>) -> ValidationResult<Self>
Marks a query as exported.
Arguments
inner
: The query to export.
Trait Implementations§
Source§impl Clone for CountQuery
impl Clone for CountQuery
Source§fn clone(&self) -> CountQuery
fn clone(&self) -> CountQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CountQuery
impl Debug for CountQuery
Source§impl Into<Query> for CountQuery
impl Into<Query> for CountQuery
Source§impl PartialEq for CountQuery
impl PartialEq for CountQuery
impl Eq for CountQuery
impl StructuralPartialEq for CountQuery
Auto Trait Implementations§
impl Freeze for CountQuery
impl RefUnwindSafe for CountQuery
impl Send for CountQuery
impl Sync for CountQuery
impl Unpin for CountQuery
impl UnwindSafe for CountQuery
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