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?
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
localeEnables the support for locale related utilities.No
metricsEnables the metrics exporter.No
oidcEnables the support for OIDC via rauthy.No
openapiEnables the support for OpenAPI docs via utoipa.No
ormEnables the ORM for MySQL, PostgreSQL or SQLite.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
viewEnables 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.
  • ormorm
    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.
  • viewview
    Building HTML views using templates.

Macros§

  • Emits a tracing::Event at the warn level and returns early with an Error.
  • Emits a tracing::Event at the warn level and constructs an Error.

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).