pub struct IncludeQuery {
pub inner: Box<Query>,
}
Expand description
Includes the results of a query in output.
The outermost part of a query will always be explicitly included. This allows you to also output an intermediate result.
§Examples
use indradb::{AllVertexQuery, QueryExt};
// A query to return all edges in the database, which are implicitly
// included as the outermost results.
let q = AllVertexQuery.outbound();
// A query to return all vertices and all edges in the database, because
// vertices are explicitly included as intermediate results.
let q = AllVertexQuery.include().outbound();
Fields§
§inner: Box<Query>
The query to export.
Implementations§
Trait Implementations§
Source§impl Clone for IncludeQuery
impl Clone for IncludeQuery
Source§fn clone(&self) -> IncludeQuery
fn clone(&self) -> IncludeQuery
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 CountQueryExt for IncludeQuery
impl CountQueryExt for IncludeQuery
Source§fn count(self) -> ValidationResult<CountQuery>
fn count(self) -> ValidationResult<CountQuery>
Gets the count from this query.
Source§impl Debug for IncludeQuery
impl Debug for IncludeQuery
Source§impl Into<Query> for IncludeQuery
impl Into<Query> for IncludeQuery
Source§impl PartialEq for IncludeQuery
impl PartialEq for IncludeQuery
Source§impl QueryExt for IncludeQuery
impl QueryExt for IncludeQuery
Source§fn outbound(self) -> ValidationResult<PipeQuery>
fn outbound(self) -> ValidationResult<PipeQuery>
Gets the outbound vertices or edges associated with this query.
Source§fn inbound(self) -> ValidationResult<PipeQuery>
fn inbound(self) -> ValidationResult<PipeQuery>
Gets the inbound vertices or edges associated with this query.
Source§fn with_property<T: Into<Identifier>>(
self,
name: T,
) -> ValidationResult<PipeWithPropertyPresenceQuery>
fn with_property<T: Into<Identifier>>( self, name: T, ) -> ValidationResult<PipeWithPropertyPresenceQuery>
Gets values with a property. Read more
Source§fn without_property<T: Into<Identifier>>(
self,
name: T,
) -> ValidationResult<PipeWithPropertyPresenceQuery>
fn without_property<T: Into<Identifier>>( self, name: T, ) -> ValidationResult<PipeWithPropertyPresenceQuery>
Gets values without a property. Read more
Source§fn with_property_equal_to<T: Into<Identifier>>(
self,
name: T,
value: Json,
) -> ValidationResult<PipeWithPropertyValueQuery>
fn with_property_equal_to<T: Into<Identifier>>( self, name: T, value: Json, ) -> ValidationResult<PipeWithPropertyValueQuery>
Gets values with a property equal to a given value. Read more
Source§fn with_property_not_equal_to<T: Into<Identifier>>(
self,
name: T,
value: Json,
) -> ValidationResult<PipeWithPropertyValueQuery>
fn with_property_not_equal_to<T: Into<Identifier>>( self, name: T, value: Json, ) -> ValidationResult<PipeWithPropertyValueQuery>
Gets values with a property not equal to a given value. Read more
Source§fn properties(self) -> ValidationResult<PipePropertyQuery>
fn properties(self) -> ValidationResult<PipePropertyQuery>
Gets the properties associated with the query results.
Source§fn include(self) -> IncludeQuery
fn include(self) -> IncludeQuery
Include this query’s output, even if it is an intermediate result.
impl Eq for IncludeQuery
impl StructuralPartialEq for IncludeQuery
Auto Trait Implementations§
impl Freeze for IncludeQuery
impl RefUnwindSafe for IncludeQuery
impl Send for IncludeQuery
impl Sync for IncludeQuery
impl Unpin for IncludeQuery
impl UnwindSafe for IncludeQuery
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