pub struct PipeQuery {
pub inner: Box<Query>,
pub direction: EdgeDirection,
pub limit: u32,
pub t: Option<Identifier>,
}
Expand description
Gets the vertices associated with edges, or edges associated with vertices.
Generally, you shouldn’t need to construct this directly, but rather call
.outbound()
or .inbound()
.
Fields§
§inner: Box<Query>
The edge query to build off of.
direction: EdgeDirection
Whether to get outbound or inbound values.
limit: u32
Limits the number of values to get.
t: Option<Identifier>
Filters the type of values returned.
Implementations§
Source§impl PipeQuery
impl PipeQuery
Sourcepub fn new(
inner: Box<Query>,
direction: EdgeDirection,
) -> ValidationResult<Self>
pub fn new( inner: Box<Query>, direction: EdgeDirection, ) -> ValidationResult<Self>
Constructs a new pipe query.
§Arguments
inner
: The inner query.direction
: Which direction to pipe from.
Sourcepub fn t(self, t: Identifier) -> Self
pub fn t(self, t: Identifier) -> Self
Trait Implementations§
Source§impl CountQueryExt for PipeQuery
impl CountQueryExt for PipeQuery
Source§fn count(self) -> ValidationResult<CountQuery>
fn count(self) -> ValidationResult<CountQuery>
Gets the count from this query.
Source§impl QueryExt for PipeQuery
impl QueryExt for PipeQuery
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 PipeQuery
impl StructuralPartialEq for PipeQuery
Auto Trait Implementations§
impl Freeze for PipeQuery
impl RefUnwindSafe for PipeQuery
impl Send for PipeQuery
impl Sync for PipeQuery
impl Unpin for PipeQuery
impl UnwindSafe for PipeQuery
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.