ferrox-types 0.5.0

Standardized domain primitives, type-safe PublicId identifiers, and Pagination models for Ferrox.
Documentation

Ferrox Types (ferrox-types)

ferrox-types provides fundamental domain primitives and wrapper types used throughout Ferrox applications, including validated Pagination parameters and type-safe PublicId structures.

Design Rationale

Primitive obsessions (e.g. passing raw u64 or String everywhere) lead to bugs, accidental ID confusion, and invalid query limits. ferrox-types introduces strongly typed abstractions that validate their invariants upon construction.

Key Features

  • 📄 Pagination: Invariant-enforced page size limit (limit > 0) and page offset helper.
  • 🏷️ PublicId: Strongly typed entity identifier wrapper preventing accidental ID substitution.