Expand description
Core types and traits for zino
.
§Feature flags
The following optional features are available:
Name | Description | Default? |
---|---|---|
accessor | Enables the data access layer built with opendal . | No |
chatbot | Enables the chatbot services. | No |
connector | Enables the data source connectors. | No |
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 |
flume | Enables the message channel via flume . | No |
i18n | Enables the support for internationalization. | No |
jwt | Enables the support for JSON Web Token. | 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 |
opa | Enables the support for OPA via regorus . | 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 |
sqids | Enables the support for sqids . | 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 fluent::fluent_args;
i18n
pub use serde_json::json;
Modules§
- accessor
accessor
Unified data access to different storage services. - High level abstractions for the application.
- Authentication and authorization.
- Cloud events and subscriptions.
- chatbot
chatbot
Unified access to different chatbot services. - connector
connector
Unified connector to different data sources. - ISO 8601 combined date and time with local time zone.
- Type-erased errors with tracing functionalities.
- Extension traits for frequently used types.
- HTTP file uploading and downloading.
- i18n
i18n
Internationalization and localization. - Domain specific models.
- orm
orm
Database schema and ORM. - Request context and validation.
- Constructing responses and rejections.
- Scheduler for sync and async cron jobs.
- Application scoped state.
- HTTP headers for performance metrics and traces.
- 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
. - Returns early with a
Rejection
. - 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).