pub struct LoginFormField {
pub name: String,
pub field_type: String,
pub value: Option<String>,
pub is_username: bool,
pub is_password: bool,
}Expand description
A field in a login form.
Fields§
§name: StringThe name attribute of the input element.
field_type: StringThe type attribute (e.g. "text", "password", "hidden").
value: Option<String>Pre-filled value (for hidden fields like CSRF tokens).
is_username: boolWhether this field is the username/email field.
is_password: boolWhether this field is the password field.
Trait Implementations§
Source§impl Clone for LoginFormField
impl Clone for LoginFormField
Source§fn clone(&self) -> LoginFormField
fn clone(&self) -> LoginFormField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LoginFormField
impl RefUnwindSafe for LoginFormField
impl Send for LoginFormField
impl Sync for LoginFormField
impl Unpin for LoginFormField
impl UnsafeUnpin for LoginFormField
impl UnwindSafe for LoginFormField
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more