Skip to main content

Module document

Module document 

Source
Expand description

Pure JSON:API document types.

These carry no dependency on axum or any data layer, so they work with default-features = false.

Structs§

Document
A JSON:API top-level document.
ErrorObject
A JSON:API error object.
ErrorSource
Points at whatever caused the error — a body member or a query parameter.
Links
A links object. Only the members JSON:API defines for our responses.
Relationship
A relationship: linkage plus its self/related links.
ResourceIdentifier
A { type, id } pair.
ResourceObject
A JSON:API resource object.

Enums§

Linkage
Relationship linkage. One(None) serializes as null.
PrimaryData
Top-level data: one resource, a collection, or an explicit null.

Constants§

MEDIA_TYPE
The JSON:API media type. Every request and response carries it.