pub struct PasswordProps {Show 17 fields
pub value: Option<String>,
pub default_value: Option<String>,
pub placeholder: Option<String>,
pub disabled: bool,
pub size: Option<InputSize>,
pub variant: Option<Variant>,
pub status: Option<ControlStatus>,
pub prefix: Option<Element>,
pub visible: bool,
pub icon_render: Option<Element>,
pub class: Option<String>,
pub style: Option<String>,
pub class_names: Option<InputClassNames>,
pub styles: Option<InputStyles>,
pub on_change: Option<EventHandler<String>>,
pub on_press_enter: Option<EventHandler<()>>,
pub on_visible_change: Option<EventHandler<bool>>,
}Expand description
Props for Password input.
Fields§
§value: Option<String>§default_value: Option<String>§placeholder: Option<String>§disabled: bool§size: Option<InputSize>§variant: Option<Variant>§status: Option<ControlStatus>§prefix: Option<Element>§visible: boolWhether the password is visible by default.
icon_render: Option<Element>Custom icon for showing password.
class: Option<String>§style: Option<String>§class_names: Option<InputClassNames>§styles: Option<InputStyles>§on_change: Option<EventHandler<String>>§on_press_enter: Option<EventHandler<()>>§on_visible_change: Option<EventHandler<bool>>Called when visibility changes.
Implementations§
Source§impl PasswordProps
impl PasswordProps
Sourcepub fn builder() -> PasswordPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> PasswordPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building PasswordProps.
On the builder, call .value(...)(optional), .default_value(...)(optional), .placeholder(...)(optional), .disabled(...)(optional), .size(...)(optional), .variant(...)(optional), .status(...)(optional), .prefix(...)(optional), .visible(...)(optional), .icon_render(...)(optional), .class(...)(optional), .style(...)(optional), .class_names(...)(optional), .styles(...)(optional), .on_change(...)(optional), .on_press_enter(...)(optional), .on_visible_change(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of PasswordProps.
Trait Implementations§
Source§impl Clone for PasswordProps
impl Clone for PasswordProps
Source§fn clone(&self) -> PasswordProps
fn clone(&self) -> PasswordProps
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 moreSource§impl PartialEq for PasswordProps
impl PartialEq for PasswordProps
Source§impl Properties for PasswordPropswhere
Self: Clone,
impl Properties for PasswordPropswhere
Self: Clone,
Source§type Builder = PasswordPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
type Builder = PasswordPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
The type of the builder for this component.
Used to create “in-progress” versions of the props.
Source§fn memoize(&mut self, new: &Self) -> bool
fn memoize(&mut self, new: &Self) -> bool
Make the old props equal to the new props. Return if the props were equal and should be memoized.
Source§fn into_vcomponent<M>(
self,
render_fn: impl ComponentFunction<Self, M>,
) -> VComponentwhere
M: 'static,
fn into_vcomponent<M>(
self,
render_fn: impl ComponentFunction<Self, M>,
) -> VComponentwhere
M: 'static,
Create a component from the props.
impl StructuralPartialEq for PasswordProps
Auto Trait Implementations§
impl !Freeze for PasswordProps
impl !RefUnwindSafe for PasswordProps
impl !Send for PasswordProps
impl !Sync for PasswordProps
impl Unpin for PasswordProps
impl !UnwindSafe for PasswordProps
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.