Crates.io | rowid |
lib.rs | rowid |
version | 0.4.0 |
source | src |
created_at | 2024-06-22 15:37:24.787216 |
updated_at | 2024-10-26 20:32:05.387243 |
description | A time-based unique ID solution |
homepage | https://github.com/alpheustangs/rowid.rs |
repository | https://github.com/alpheustangs/rowid.rs |
max_upload_size | |
id | 1280521 |
size | 24,315 |
A time-based unique ID solution.
Create an ID with the following code:
use rowid::base::rowid;
let id: String = rowid();
Or start a customization with the following code:
use rowid::with_config::{RowIDWithConfig, RowIDWithConfigResult};
let rwc: RowIDWithConfigResult = RowIDWithConfig::new()
.char_list("0123456789ABCDEFGHJKMNPQRSTVWXYZ")
.randomness_length(22)
.done()
.unwrap();
let id: String = rwc.rowid();
This project is MIT licensed, you can find the license file here.