A Rust crate for creating URL‑safe, encrypted email confirmation tokens with configurable expiry
(with precision to the second) and for validating them to retrieve the original email.
usechrono::{DateTime, Utc};usethiserror::Error;#[derive(Error, Debug)]/// Defines possible errors
pubenumError{/// The Token is expired at the date
#[error("token expired at `{0}`")]
Expired(DateTime<Utc>),/// Unknown error
#[error("error occurred: {0:?}")]
Other(String),}