[−][src]Module transistor::types
Generic Request/Response Types for Crux. Availables types are:
CruxId
is the field that receives a String and serielizes it to a EDN Keyword.
Availables types for responses in module types::response
are:
StateResponse
response for Crux REST API at endpoint/state
.TxLogResponse
response for Crux REST API at endpoint/tx-log
. ForPOSTs
,tx__event___tx_events (:crux-tx.event/tx_events)
comes withNone
.TxLogsResponse
response is the wrapper for aGET
at endpoint/tx-logs
, it is aVector
of typeTxLogResponse
.EntityTxResponse
response for Crux REST API at/entity-tx
endpoint.EntityHistoryResponse
response for Crux REST API at/entity-history
.QueryAsyncResponse
is a Future response for a query on Crux REST Api at/query
, featureasync
is required.
Available auxiliary Enums for HTTP in module types::http
:
- Enum
Action
is available in this module. - Enum
Order
is available in this module to be used withentity_history
. - Enum
TimeHistory
is available in this module to be used withentity_history_timed
.
It is possible to use chrono
for time related responses (TxLogResponse
, EntityTxResponse
, EntityHistoryElement
). to use it you need to enable feature `"time".
Re-exports
pub use http::Action; |
pub use http::Order; |
Modules
error | |
http | |
query | |
response |
Structs
CruxId | Id to use as reference in Crux, similar to |