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?
accessorEnables the data access layer built with opendal.No
chatbotEnables the chatbot services.No
connectorEnables the data source connectors.No
cookieEnables the support for cookies.No
crypto-smEnables China’s Standards of Encryption Algorithms.No
dotenvEnables the configuration loader for a .env file.No
env-filterEnables the env-filter for tracing-subscriber.No
i18nEnables the support for internationalization.No
jwtEnables the support for JSON Web Token.No
localeEnables the support for locale related utilities.No
metricsEnables the metrics exporter.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
sqidsEnables the support for sqids.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
validatorEnables the common validation rules.No
viewEnables the HTML template rendering.No

Re-exports§

Modules§

  • accessoraccessor
    Unified data access to different storage services.
  • High level abstractions for the application.
  • Authentication and authorization.
  • Cloud events and subscriptions.
  • chatbotchatbot
    Unified access to different chatbot services.
  • connectorconnector
    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.
  • i18ni18n
    Internationalization and localization.
  • Domain specific models.
  • ormorm
    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.
  • viewview
    Building HTML views using templates.

Macros§

  • Emits a tracing::Event at the warn level and returns early with an Error.
  • Returns early with a Rejection.
  • 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).