2 releases
0.1.1 | Aug 4, 2024 |
---|---|
0.1.0 | Jun 22, 2024 |
#279 in Authentication
111 downloads per month
24KB
408 lines
RowID
A time-based unique ID solution.
Quick Start
You may create a RowID with the following code:
use rowid::rowid;
let id: String = rowid();
Or customize the RowID with the following code:
use rowid::{RowIDWithConfig, RowIDWithConfigResult};
let rwc: RowIDWithConfigResult = RowIDWithConfig::new()
.char_list("0123456789ABCDEFGHJKMNPQRSTVWXYZ".to_string())
.randomness_length(22)
.done()
.unwrap();
let id: String = rwc.rowid();
License
This project is MIT licensed, you can find the license file here.
lib.rs
:
RowID
A time-based unique ID solution.
Quick Start
You may create a RowID with the following code:
use rowid::rowid;
let id: String = rowid();
Or customize the RowID with the following code:
use rowid::{RowIDWithConfig, RowIDWithConfigResult};
let rwc: RowIDWithConfigResult = RowIDWithConfig::new()
.char_list("0123456789ABCDEFGHJKMNPQRSTVWXYZ".to_string())
.randomness_length(22)
.done()
.unwrap();
let id: String = rwc.rowid();
Dependencies
~315KB