Struct indradb::PipeEdgeQuery
source · pub struct PipeEdgeQuery {
pub inner: Box<VertexQuery>,
pub direction: EdgeDirection,
pub limit: u32,
pub t: Option<Type>,
pub high: Option<DateTime<Utc>>,
pub low: Option<DateTime<Utc>>,
}
Expand description
Gets the edges associated with vertices.
Generally, you shouldn’t need to construct this directly, but rather call
.outbound()
or .inbound()
on a vertex query.
Fields
inner: Box<VertexQuery>
The vertex query to build off of.
direction: EdgeDirection
Whether to get outbound or inbound edges on the vertices.
limit: u32
Limits the number of edges to get.
t: Option<Type>
Filters the type of edges returned.
high: Option<DateTime<Utc>>
Specifies the newest update datetime for returned edges.
low: Option<DateTime<Utc>>
Specifies the oldest update datetime for returned edges.
Implementations
sourceimpl PipeEdgeQuery
impl PipeEdgeQuery
sourcepub fn new(inner: Box<VertexQuery>, direction: EdgeDirection, limit: u32) -> Self
pub fn new(inner: Box<VertexQuery>, direction: EdgeDirection, limit: u32) -> Self
Creates a new pipe edge query.
Arguments
inner
- The edge query to build off of.direction
- Whether to get outbound or inbound edges on the vertices.limit
- Limits the number of edges to get.
Trait Implementations
sourceimpl Clone for PipeEdgeQuery
impl Clone for PipeEdgeQuery
sourcefn clone(&self) -> PipeEdgeQuery
fn clone(&self) -> PipeEdgeQuery
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PipeEdgeQuery
impl Debug for PipeEdgeQuery
sourceimpl EdgeQueryExt for PipeEdgeQuery
impl EdgeQueryExt for PipeEdgeQuery
sourcefn outbound(self, limit: u32) -> PipeVertexQuery
fn outbound(self, limit: u32) -> PipeVertexQuery
Gets the vertices associated with the outbound end of the edges. Read more
sourcefn inbound(self, limit: u32) -> PipeVertexQuery
fn inbound(self, limit: u32) -> PipeVertexQuery
Gets the vertices associated with the inbound end of the edges. Read more
sourceimpl From<PipeEdgeQuery> for EdgeQuery
impl From<PipeEdgeQuery> for EdgeQuery
sourcefn from(query: PipeEdgeQuery) -> Self
fn from(query: PipeEdgeQuery) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<PipeEdgeQuery> for PipeEdgeQuery
impl PartialEq<PipeEdgeQuery> for PipeEdgeQuery
sourcefn eq(&self, other: &PipeEdgeQuery) -> bool
fn eq(&self, other: &PipeEdgeQuery) -> bool
impl StructuralPartialEq for PipeEdgeQuery
Auto Trait Implementations
impl RefUnwindSafe for PipeEdgeQuery
impl Send for PipeEdgeQuery
impl Sync for PipeEdgeQuery
impl Unpin for PipeEdgeQuery
impl UnwindSafe for PipeEdgeQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more