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.
useserde::{Deserialize, Serialize};#[derive(Serialize, Deserialize, Debug)]/// Defines the data to be encoded in the token
pub(super)structPayload{#[serde(rename ="m")]/// Email address to verify
pub(super) email: String,
#[serde(rename ="e")]/// Timestamp in unix epoch after which the token is considered expired
pub(super) expiration:i64,
}