Crate cargonauts [] [src]

Modules

_internal

This module is an implementation detail of cargonauts; it is only exposed in the API because it needs to be called by the expansion of the routes! macro.

api
router

Macros

_count_rels
_fetch_rel
_link_rel
_methods

Do not call this macro, it is an implementation detail of the routes! macro.

_name_rel
_rel_methods
_resource

Do not call this macro, it is an implementation detail of the routes! macro.

relation

DSL for constructing a Relation type.

routes

The entry point for the routes DSL, which defines the endpoints of your API.

Enums

Value

Represents a JSON value

Traits

Deserialize

Deserialize represents a type that can be deserialized.

Deserializer

Deserializer is a trait that can deserialize values by threading a Visitor trait through a value. It supports two entry point styles which enables different kinds of deserialization.

Serialize

A trait that describes a type that can be serialized by a Serializer.

Serializer

A trait that describes a type that can serialize a stream of values into the underlying format.

Functions

from_value

Shortcut function to decode a JSON Value into a T

to_value

Shortcut function to encode a T into a JSON Value