Module interpreter

Source

Modules§

basic_adapter
error
execution
helpers
replay
trace

Structs§

DataContext
A partial result of a Trustfall query within the interpreter defined in this module.
DynamicallyResolvedValue
Indicates that a property’s value is dependent on another value in the query.
EdgeInfo
Information about an edge that is being resolved as part of a query.
InterpretedQuery
NeighborInfo
Information about a neighboring vertex. Implements VertexInfo.
QueryInfo
Contains overall information about the query being executed, such as its outputs and variables.
Range
A range of values. Both its endpoints may be included or excluded in the range, or unbounded.
RequiredProperty
Represents a required property of a specific vertex
ResolveEdgeInfo
Enables adapter optimizations by showing how a query uses a particular edge.
ResolveInfo
Enables adapter optimizations by showing how a query uses a vertex. Implements VertexInfo.

Enums§

CandidateValue
Candidate values for the value of a vertex property.

Traits§

Adapter
Trustfall data providers implement this trait to enable querying their data sets.
AsVertex
Attempt to dereference a value to a &V, returning None if the value did not contain a V.
Cast
Allow bidirectional conversions between a type V and the type implementing this trait.
Typename
Accessor method for the __typename special property of Trustfall vertices.
VertexInfo
Information about what the currently-executing query needs at a specific vertex.

Type Aliases§

ContextIterator
An iterator of query contexts: bookkeeping structs we use to build up the query results.
ContextOutcomeIterator
Iterator of (context, outcome) tuples: the output type of most resolver functions.
VertexIterator
An iterator of vertices representing data points we are querying.