Expand description
Core types and traits for zino
.
§Feature flags
The following optional features are available:
Name | Description | Default? |
---|---|---|
cookie | Enables the support for cookies. | No |
crypto-sm | Enables China’s Standards of Encryption Algorithms. | No |
debug | Enables the features for ease of debugging. | No |
dotenv | Enables the configuration loader for a .env file. | No |
env-filter | Enables the env-filter for tracing-subscriber . | No |
http-client | Enables the HTTP client via reqwest . | No |
locale | Enables the support for locale related utilities. | No |
metrics | Enables the metrics exporter. | No |
oidc | Enables the support for OIDC via rauthy . | No |
openapi | Enables the support for OpenAPI docs via utoipa . | No |
orm | Enables the ORM for MySQL, PostgreSQL or SQLite. | No |
runtime-async-std | Enables the async-std runtime. | No |
runtime-tokio | Enables the tokio runtime. | No |
sentry | Enables the integration with sentry . | No |
tls-native | Enables the native-tls TLS backend. | No |
tls-rustls | Enables the rustls TLS backend. | No |
tracing-log | Enables the tracing-log for tracing-subscriber . | No |
tracing-subscriber | Enables the integration with tracing-subscriber . | No |
validator | Enables the common validation rules. | No |
view | Enables the HTML template rendering. | No |
Re-exports§
pub use serde_json::json;
Modules§
- High level abstractions for the application.
- Crypto helpers for hashing, signing, encryption and decryption.
- ISO 8601 combined date and time with local time zone.
- Encoding and decoding.
- Type-erased errors with tracing functionalities.
- Extension traits for frequently used types.
- Domain specific models.
- orm
orm
Database schema and ORM. - Scheduler for sync and async cron jobs.
- Application scoped state.
- HTTP headers for trace coontext.
- Generic validator and common validation rules.
- view
view
Building HTML views using templates.
Macros§
- Emits a
tracing::Event
at the warn level and returns early with anError
. - Emits a
tracing::Event
at the warn level and constructs anError
.
Type Aliases§
- An Avro value.
- An owned dynamically typed error.
- An owned dynamically typed future.
- A 128 bit representation of a fixed-precision decimal number.
- A JSON value.
- A value which is initialized on the first access.
- A JSON key-value type.
- A schema-less Avro record value.
- An allocation-optimized string.
- A TOML value.
- A Universally Unique Identifier (UUID).