🚧 Expone as_str de AutofillField
This commit is contained in:
parent
ee6457acf6
commit
3120fd9a6f
1 changed files with 1 additions and 1 deletions
|
|
@ -380,7 +380,7 @@ pub enum AutofillField {
|
||||||
|
|
||||||
impl AutofillField {
|
impl AutofillField {
|
||||||
/// Devuelve el token exacto definido por HTML para `autocomplete`.
|
/// 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 {
|
match self {
|
||||||
AutofillField::Name => "name",
|
AutofillField::Name => "name",
|
||||||
AutofillField::HonorificPrefix => "honorific-prefix",
|
AutofillField::HonorificPrefix => "honorific-prefix",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue