2024-03-27 00:46:32 +00:00
|
|
|
# `cuprate-types`
|
|
|
|
Various data types shared by Cuprate.
|
|
|
|
|
2024-05-05 14:21:28 +00:00
|
|
|
- [1. File Structure](#1-file-structure)
|
|
|
|
- [1.1 `src/`](#11-src)
|
2024-03-27 00:46:32 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
2024-05-05 14:21:28 +00:00
|
|
|
## 1. File Structure
|
2024-03-27 00:46:32 +00:00
|
|
|
A quick reference of the structure of the folders & files in `cuprate-types`.
|
|
|
|
|
|
|
|
Note that `lib.rs/mod.rs` files are purely for re-exporting/visibility/lints, and contain no code. Each sub-directory has a corresponding `mod.rs`.
|
|
|
|
|
2024-05-05 14:21:28 +00:00
|
|
|
### 1.1 `src/`
|
2024-03-27 00:46:32 +00:00
|
|
|
The top-level `src/` files.
|
|
|
|
|
|
|
|
| File | Purpose |
|
|
|
|
|---------------------|---------|
|
|
|
|
| `service.rs` | Types used in database requests; `enum {Request,Response}`
|
2024-05-05 14:21:28 +00:00
|
|
|
| `types.rs` | Various general types used by Cuprate
|