🚧 Expone as_str de AutofillField

This commit is contained in:
Manuel Cillero 2026-06-29 20:58:42 +02:00
parent ee6457acf6
commit 3120fd9a6f

View file

@ -380,7 +380,7 @@ pub enum AutofillField {
impl AutofillField {
/// Devuelve el token exacto definido por HTML para `autocomplete`.
pub(crate) fn as_str(&self) -> &'static str {
pub const fn as_str(&self) -> &'static str {
match self {
AutofillField::Name => "name",
AutofillField::HonorificPrefix => "honorific-prefix",