Expand description
Core types and traits for zino
.
§Feature flags
The following optional features are available:
Name | Description | Default? |
---|---|---|
apalis | Enables the support for apalis . | 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 |
http-client | Enables the HTTP client via reqwest . | No |
i18n | Enables the support for internationalization. | No |
locale | Enables the support for locale related utilities. | No |
metrics | Enables the metrics exporter. | No |
preferences | Enables the support for application preferences. | 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 |
Re-exports§
pub use fluent::fluent_args;
i18n
pub use serde_json::json;
Modules§
- application
- High level abstractions for the application.
- crypto
- Crypto helpers for hashing, signing, encryption and decryption.
- datetime
- ISO 8601 combined date and time with local time zone.
- encoding
- Encoding and decoding.
- error
- Type-erased errors with tracing functionalities.
- extension
- Extension traits for frequently used types.
- i18n
i18n
- Internationalization and localization.
- model
- Domain specific models.
- schedule
- Scheduler for sync and async cron jobs.
- state
- Application scoped state.
- trace
- HTTP headers for trace coontext.
- validation
- Generic validator and common validation rules.
Macros§
- bail
- Emits a
tracing::Event
at the warn level and returns early with anError
. - warn
- Emits a
tracing::Event
at the warn level and constructs anError
.
Type Aliases§
- Avro
Value - An Avro value.
- BoxError
- An owned dynamically typed error.
- BoxFuture
- An owned dynamically typed future.
- Decimal
- A 128 bit representation of a fixed-precision decimal number.
- Json
Value - A JSON value.
- Lazy
Lock - A value which is initialized on the first access.
- Map
- A JSON key-value type.
- Record
- A schema-less Avro record value.
- Shared
String - An allocation-optimized string.
- Toml
Value - A TOML value.
- Uuid
- A Universally Unique Identifier (UUID).