Module rincon_core::api::method
[−]
[src]
Method Calls as Data
The REST API of ArangoDB defines operations to be invoked by a client application. In this driver we speak of a method call for the invocation of a REST operation. Each operation or method is defined by its input parameters and its return type. The input parameters may be mandatory or optional.
In rincon method calls are represented as structs that implement the
Method
and the Prepare
traits. Hence method calls are in fact structs
that hold the data necessary to invoke an operation.
The big advantage of defining method calls as data types is that instances of concrete method calls can be easily queued, distributed, repeated, cached or processed in batches. Further it is very easy to extend the driver with new operations by simple defining a new struct for each new operation, done.
Structs
Error |
Represents an error that occurs during method execution. |
ParameterIter |
An |
Parameters |
A new type for a set of parameters or name/value pairs. |
ResultList |
A container for a list of |
ResultListIntoIter |
An |
ResultListIter |
An |
RpcReturnType |
Specification of the fields of RPC-like return type. |
Enums
Operation |
Enumeration of the used operation of a REST API. |
Result |
A container for entities in the result of a method call, where the result contains a list of entities and there might be error information for single results only, not the whole operation. |
Traits
Method |
A |
Prepare |
A |