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 |
crypto-sm | Enables China’s Standards of Encryption Algorithms. | No |
locale | Enables the support for locale related utilities. | No |
metrics | Enables the metrics exporter. | 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. | Yes |
tls-native | Enables the native-tls TLS backend. | No |
tls-rustls | Enables the rustls TLS backend. | Yes |
validator | Enables the common validation rules. | No |
view | Enables the HTML template rendering. | No |
Re-exports
pub use fluent::fluent_args;
pub use serde_json::json;
Modules
- Unified data access to different storage services.
- High level abstractions for the application.
- Authentication and authorization.
- Cloud events and subscriptions.
- Unified access to different chatbot services.
- 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.
- Internationalization and localization.
- Domain specific models.
- 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.
- 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 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).