rowid

Crates.iorowid
lib.rsrowid
version0.4.0
sourcesrc
created_at2024-06-22 15:37:24.787216
updated_at2024-10-26 20:32:05.387243
descriptionA time-based unique ID solution
homepagehttps://github.com/alpheustangs/rowid.rs
repositoryhttps://github.com/alpheustangs/rowid.rs
max_upload_size
id1280521
size24,315
Alpheus (alpheustangs)

documentation

README

RowID

A time-based unique ID solution.

Quick Start

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();

License

This project is MIT licensed, you can find the license file here.

Commit count: 14

cargo fmt