pub struct PasswordInput { /* private fields */ }Expand description
A password input with a button that shows and hides the password.
Implementations§
Source§impl PasswordInput
impl PasswordInput
Source§impl PasswordInput
impl PasswordInput
Sourcepub fn label(self, v: &str) -> Self
pub fn label(self, v: &str) -> Self
See Input::label.
Sourcepub fn placeholder(self, v: &str) -> Self
pub fn placeholder(self, v: &str) -> Self
See Input::placeholder.
Sourcepub fn name(self, v: &str) -> Self
pub fn name(self, v: &str) -> Self
See Input::name.
Sourcepub fn required(self, v: bool) -> Self
pub fn required(self, v: bool) -> Self
See Input::required.
Sourcepub fn disabled(self, v: bool) -> Self
pub fn disabled(self, v: bool) -> Self
See Input::disabled.
Sourcepub fn readonly(self, v: bool) -> Self
pub fn readonly(self, v: bool) -> Self
See Input::readonly.
Sourcepub fn color(self, v: Color) -> Self
pub fn color(self, v: Color) -> Self
See Input::color.
Sourcepub fn size(self, v: Size) -> Self
pub fn size(self, v: Size) -> Self
See Input::size.
Sourcepub fn variant(self, v: FieldVariant) -> Self
pub fn variant(self, v: FieldVariant) -> Self
See Input::variant.
Sourcepub fn radius(self, v: Radius) -> Self
pub fn radius(self, v: Radius) -> Self
See Input::radius.
Sourcepub fn label_placement(self, v: LabelPlacement) -> Self
pub fn label_placement(self, v: LabelPlacement) -> Self
Sourcepub fn full_width(self, v: bool) -> Self
pub fn full_width(self, v: bool) -> Self
See Input::full_width.
Sourcepub fn label_class(self, v: &str) -> Self
pub fn label_class(self, v: &str) -> Self
See Input::label_class.
Sourcepub fn wrapper_class(self, v: &str) -> Self
pub fn wrapper_class(self, v: &str) -> Self
See Input::wrapper_class.
Sourcepub fn input_class(self, v: &str) -> Self
pub fn input_class(self, v: &str) -> Self
See Input::input_class.
Sourcepub fn description_class(self, v: &str) -> Self
pub fn description_class(self, v: &str) -> Self
Sourcepub fn error_class(self, v: &str) -> Self
pub fn error_class(self, v: &str) -> Self
See Input::error_class.
Sourcepub fn class(self, v: &str) -> Self
pub fn class(self, v: &str) -> Self
See Input::class.
Sourcepub fn unstyled(self, v: bool) -> Self
pub fn unstyled(self, v: bool) -> Self
See Input::unstyled.
Source§impl PasswordInput
impl PasswordInput
pub fn description(self, v: impl MaybeText) -> Self
pub fn error_message(self, v: impl MaybeText) -> Self
pub fn invalid(self, v: bool) -> Self
pub fn value(self, v: impl MaybeText) -> Self
pub fn start_content(self, v: impl View) -> Self
pub fn end_content(self, v: impl View) -> Self
Sourcepub fn new_password(self, v: bool) -> Self
pub fn new_password(self, v: bool) -> Self
autocomplete="new-password" for sign-up forms.
Trait Implementations§
Source§impl Default for PasswordInput
impl Default for PasswordInput
Auto Trait Implementations§
impl !RefUnwindSafe for PasswordInput
impl !Sync for PasswordInput
impl !UnwindSafe for PasswordInput
impl Forget for PasswordInput
impl Freeze for PasswordInput
impl Move for PasswordInput
impl Send for PasswordInput
impl Unpin for PasswordInput
impl UnsafeUnpin for PasswordInput
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