Struct indradb::IncludeQuery
source · 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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
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<IncludeQuery> for IncludeQuery
impl PartialEq<IncludeQuery> for IncludeQuery
source§fn eq(&self, other: &IncludeQuery) -> bool
fn eq(&self, other: &IncludeQuery) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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.