entity-core 0.3.0

Core traits and types for entity-derive
Documentation

entity-core

Crates.io Docs.rs License: MIT

Core traits and types for entity-derive.

This is an internal crate. Use entity-derive directly.

Overview

This crate provides the foundational types used by entity-derive:

  • Repository<T> - Base repository trait for CRUD operations
  • Pagination - Type-safe pagination with offset/limit
  • SortDirection - Enum for ASC/DESC ordering

Usage

These types are re-exported from entity-derive, so you typically don't need to depend on this crate directly:

use entity_derive::{Entity, Pagination, SortDirection};

let page = Pagination::page(0, 25);

Documentation

For complete documentation, examples, and usage guide, see:

License

MIT License - see LICENSE