Crate dflake[][src]

ci-badge docs-badge crate-version

dflake

A simple Discord snowflake parsing library. Comes with optional chrono support using the chrono_support feature.

Sample Usage

let dflake = dflake::parse(3971046231244935168);
println!("My internal process ID is: {}", dflake.process_id);

Structs

Dflake

Structure holding a valid Discord snowflake.

Enums

ParseError

Things that can go wrong while parsing a Dflake.

Functions

parse

Tries to parse a u64 into a Dflake.

parse_str

Tries to parse a string into a Dflake.