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

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.

Filter the type of edges returned.

Arguments
  • t - Sets the type filter.

Filter the update datetime of the edges returned.

Arguments
  • high - The newest update datetime for the edges returned.

Filter the update datetime of the edges returned.

Arguments
  • low - The oldest update datetime for the edges returned.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Gets the vertices associated with the outbound end of the edges. Read more
Gets the vertices associated with the inbound end of the edges. Read more
Gets a property associated with the edges. Read more
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.