#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum IdType {
Uuid,
Ulid,
Cuid2,
NanoId,
Custom,
}
impl IdType {
pub fn as_str(&self) -> &'static str {
match self {
IdType::Uuid => "uuid",
IdType::Ulid => "ulid",
IdType::Cuid2 => "cuid2",
IdType::NanoId => "nanoid",
IdType::Custom => "custom",
}
}
}