https://github.com/byte-sourcerer/typed_id2
Typed ID for Rust
https://github.com/byte-sourcerer/typed_id2
Last synced: 5 months ago
JSON representation
Typed ID for Rust
- Host: GitHub
- URL: https://github.com/byte-sourcerer/typed_id2
- Owner: byte-sourcerer
- License: mit
- Created: 2023-09-26T06:03:54.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-13T08:59:51.000Z (over 2 years ago)
- Last Synced: 2025-08-29T18:30:52.910Z (5 months ago)
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# typed_id2
## Usage
```rust
use typed_id::Id;
struct Customer {
name: String,
}
type CustomerId = Id;
let customer_id = CustomerId::new(1);
```