Module rocket

Module rocket 

Source

Macros§

auth
The ncryptf::auth!() macro provides the appropriate generic implementation details of FromRequest to allow User entities to be returned as a Rocket request guard (FromRequest). The core features of ncryptf authorization verification are implemented through this macro. If you wish to utilize ncryptf’s authorization features you must perform the following.

Structs§

Json
ncryptf::rocket::Json represents a application/vnd.ncryptf+json, JSON string The JSON struct supports both serialization and de-serialization to reduce implementation time within your application
JsonResponse
ncryptf::rocket::JsonResponse is identical to ncryptf::rocket::Json except that is also supports setting a status code on the response.
RequestData
RequestPublicKey
The cached public key from the request
RequestSigningPublicKey
The cached signing public key from the request

Enums§

CacheWrapper
A wrapper for supported cache types
JsonError
TokenError
An enum of the various authentication errors that may occur - generalized

Traits§

AuthorizationTrait
AuthorizationTrait is a trait that should be implemented by your User entity. This trait, in conjunction with the ncryptf::auth!() macro, enables individual Users to be returned as part of a Rocket request guard.
Deserialize
A data structure that can be deserialized from any data format supported by Serde.

Functions§

parse_body
respond_to_with_ncryptf

Derive Macros§

Deserialize