Expand description
Core types and traits associated with the OpenAPI v2 specification.
Re-exports§
pub use self::models::DefaultSchema;
pub use self::models::ResolvableApi;
pub use self::schema::Schema;
pub use serde_json;
Modules§
Structs§
- Accepted
Json - Created
Json - Http
Response Wrapper - Workaround for possibility to directly return HttpResponse from closure handler.
- NoContent
- Responder
Wrapper - Wrapper for wrapping over
impl Responder
thingies (to avoid breakage). - Response
Wrapper
Traits§
- Operation
Modifier - Actix-specific trait for indicating that this entity can modify an operation and/or update the global map of definitions.
Attribute Macros§
- api_
v2_ errors - Marker attribute for indicating that the marked object can represent non-2xx (error) status codes with optional descriptions.
- api_
v2_ errors_ overlay - Marker attribute for indicating that the marked object can filter error responses from the
the
#[api_v2_errors]
macro. - api_
v2_ operation - Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.
- api_
v2_ schema_ struct - Converts your struct to support deserializing from an OpenAPI v2
Schema
object (example). This adds the necessary fields (in addition to your own fields) and implements the
Schema
trait for parsing and codegen. - delete
- Creates route handler with
paperclip::actix::web::Resource
. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder. - get
- Creates route handler with
paperclip::actix::web::Resource
. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder. - head
- Creates route handler with
paperclip::actix::web::Resource
. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder. - patch
- Creates route handler with
paperclip::actix::web::Resource
. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder. - post
- Creates route handler with
paperclip::actix::web::Resource
. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder. - put
- Creates route handler with
paperclip::actix::web::Resource
. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.
Derive Macros§
- Apiv2
Header - Derive attribute for indicating that a type is an OpenAPI v2 compatible header parameter.
- Apiv2
Schema - Derive attribute for indicating that a type is an OpenAPI v2 compatible definition.
- Apiv2
Security - Marker attribute for indicating that an object forbids public access to operation (for example AccessToken).