Crate cargonauts [] [src]

Reexports

pub extern crate futures;
pub extern crate serde;
pub extern crate serde_json as json;
pub extern crate tokio_redis as redis;

Modules

clients

For defining high level clients to other services.

config

Configuration of cargonauts.

formats

For providing formats for methods and defining new ones.

methods

For implementing methods on resources and defining new ones.

middleware

For wrapping your endpoints in middleware.

server

Raw HTTP types.

Macros

relation

This macro constructs a new relationship alias. The syntax is relation!(NewRelation => ResourceType);, which creates a new type called NewRelation that implements Relationship to ResourceType.

routes

The routes DSL

Structs

Environment

The Environment in which an API endpoint runs.

Error

The Error type for your application.

Traits

Relationship

A relationship to another resource.

Resource

The trait implemented by all resources.

Functions

serve