Crate zino_core

Source
Expand description

github crates-io docs-rs

Core types and traits for zino.

§Feature flags

The following optional features are available:

NameDescriptionDefault?
apalisEnables the support for apalis.No
cookieEnables the support for cookies.No
crypto-smEnables China’s Standards of Encryption Algorithms.No
debugEnables the features for ease of debugging.No
dotenvEnables the configuration loader for a .env file.No
env-filterEnables the env-filter for tracing-subscriber.No
http-clientEnables the HTTP client via reqwest.No
i18nEnables the support for internationalization.No
localeEnables the support for locale related utilities.No
metricsEnables the metrics exporter.No
preferencesEnables the support for application preferences.No
runtime-async-stdEnables the async-std runtime.No
runtime-tokioEnables the tokio runtime.No
sentryEnables the integration with sentry.No
tls-nativeEnables the native-tls TLS backend.No
tls-rustlsEnables the rustls TLS backend.No
tracing-logEnables the tracing-log for tracing-subscriber.No
tracing-subscriberEnables the integration with tracing-subscriber.No
validatorEnables 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.
i18ni18n
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 an Error.
warn
Emits a tracing::Event at the warn level and constructs an Error.

Type Aliases§

AvroValue
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.
JsonValue
A JSON value.
LazyLock
A value which is initialized on the first access.
Map
A JSON key-value type.
Record
A schema-less Avro record value.
SharedString
An allocation-optimized string.
TomlValue
A TOML value.
Uuid
A Universally Unique Identifier (UUID).