Expand description
The Conjure HTTP server API.
Re-exports§
pub use crate::encoding::*;
Modules§
- conjure
- Implementations for Conjure-generated endpoints.
- runtime
- Runtime configuration for Conjure servers.
Structs§
- BoxAsync
Endpoint - A boxed
AsyncEndpointtrait object. - BoxAsync
Write Body - A boxed
AsyncWriteBodytrait object. - BoxLocal
Async Endpoint - A boxed
LocalAsyncEndpointtrait object. - BoxLocal
Async Write Body - A boxed
LocalAsyncWriteBodytrait object. - Conjure
Runtime - A type providing server logic that is configured at runtime.
- From
Decoder - A decoder which maps the output of another with
From::from. - From
Request Deserializer - A request deserializer which maps the output of another with
From::from. - From
StrSeq Decoder - A decoder which converts a sequence of values via its
FromStrimplementation into a collection via aFromIteratorimplementation. - Json
Encoding - An
Encodingusingconjure_serde::json. - Request
Context - An object containing extra low-level contextual information about a request.
- Smile
Encoding - An
Encodingusingconjure_serde::smile. - UseLegacy
Error Serialization - A marker value to opt into legacy error serialization.
Enums§
- Async
Response Body - The response body returned from an async endpoint.
- Empty
Response Serializer - A serializer which encodes
()as an empty body and status code of204 No Content. - From
StrDecoder - A decoder which converts a single value using its
FromStrimplementation. - From
StrOption Decoder - A decoder which converts an optional value using its
FromStrimplementation. - Local
Async Response Body - The response body returned from a local async endpoint.
- Path
Segment - One segment of an endpoint URI template.
- Response
Body - The response body returned from a blocking endpoint.
- StdRequest
Deserializer - A request deserializer for standard body types.
- StdResponse
Serializer - A body serializer for standard response types.
Traits§
- Async
Deserialize Request - A trait implemented by response deserializers used by custom async Conjure server trait implementations.
- Async
Endpoint - A nonblocking HTTP endpoint.
- Async
Serialize Response - A trait implemented by response serializers used by custom async Conjure server trait implementations.
- Async
Service - An async Conjure service.
- Async
Write Body - A trait implemented by asynchronous streaming bodies.
- Decode
Header - A trait implemented by header decoders used by custom Conjure server trait implementations.
- Decode
Param - A trait implemented by URL parameter decoders used by custom Conjure server trait implementations.
- Deserialize
Request - A trait implemented by request body deserializers used by custom Conjure server trait implementations.
- Endpoint
- A blocking HTTP endpoint.
- Endpoint
Metadata - Metadata about an HTTP endpoint.
- Local
Async Deserialize Request - A trait implemented by response deserializers used by custom local async Conjure server trait implementations.
- Local
Async Endpoint - A nonblocking local HTTP endpoint.
- Local
Async Serialize Response - A trait implemented by response serializers used by custom local async Conjure server trait implementations.
- Local
Async Service - A local async Conjure service.
- Local
Async Write Body - A trait implemented by local asynchronous streaming bodies.
- Serialize
Response - A trait implemented by response serializers used by custom Conjure server trait implementations.
- Service
- A blocking Conjure service.
- Write
Body - A trait implemented by streaming bodies.