Crate uuid_extra

Crate uuid_extra 

Source

Enums§

Error

Functions§

b58_to_epoch_ms
Decodes a Base58 encoded string into an epoch millisecond timestamp. This function is valid only for UUID v7.
b64_to_epoch_ms
Decodes a standard Base64 encoded string into an epoch millisecond timestamp. This function is valid only for UUID v7.
b64url_nopad_to_epoch_ms
Decodes a URL-safe Base64 encoded string (without padding) into an epoch millisecond timestamp. This function is valid only for UUID v7.
b64url_to_epoch_ms
Decodes a URL-safe Base64 encoded string (with padding) into an epoch millisecond timestamp. This function is valid only for UUID v7.
from_b58
Decodes a Base58 encoded string into a UUID.
from_b64
Decodes a standard Base64 encoded string into a UUID.
from_b64url
Decodes a URL-safe Base64 encoded string (with padding) into a UUID.
from_b64url_nopad
Decodes a URL-safe Base64 encoded string (without padding) into a UUID.
new_v4
Generates a new UUID version 4.
new_v7
Alias to now_v7
new_v4_b58
Generates a new UUID version 4 and encodes it using Base58.
new_v4_b64
Generates a new UUID version 4 and encodes it using standard Base64.
new_v4_b64url
Generates a new UUID version 4 and encodes it using URL-safe Base64.
new_v4_b64url_nopad
Generates a new UUID version 4 and encodes it using URL-safe Base64 without padding.
new_v7_b58
Generates a new UUID version 7 and encodes it using Base58.
new_v7_b64
Generates a new UUID version 7 and encodes it using standard Base64.
new_v7_b64url
Generates a new UUID version 7 and encodes it using URL-safe Base64.
new_v7_b64url_nopad
Generates a new UUID version 7 and encodes it using URL-safe Base64 without padding.
now_v7
Generates a new UUID version 7 with the now time.
to_time_epoch_ms
If uuid is a version-7 UUID, return the epoch time millisecond precision.

Type Aliases§

Result