ferrox-types 0.3.0

Standardized domain primitives, type-safe PublicId identifiers, and Pagination models for Ferrox.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
# 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.