pub struct LoginParams {Show 17 fields
pub css: Css,
pub add_css: Css,
pub line_css: Css,
pub line_add_css: Css,
pub input_css: Css,
pub submit_css: Css,
pub submit_add_css: Css,
pub error_message: Rc<dyn Fn(String) -> String>,
pub username_label: String,
pub password_label: String,
pub button_label: String,
pub waiting_label: String,
pub header: Option<DomNode>,
pub footer: Option<DomNode>,
pub render_username: Option<RenderInput>,
pub render_password: Option<RenderInput>,
pub render_submit: Option<RenderSubmit>,
}Fields§
§css: Css§add_css: Css§line_css: Css§line_add_css: Css§input_css: Css§submit_css: Css§submit_add_css: Css§error_message: Rc<dyn Fn(String) -> String>§username_label: String§password_label: String§waiting_label: String§header: Option<DomNode>Optional content rendered at the top of the form, before the message line.
Optional content rendered at the bottom of the form, after the submit button.
render_username: Option<RenderInput>Optional custom renderer for the username input. Receives the bound value
so submit/Enter handling keeps working. When None, a plain <input> is used.
render_password: Option<RenderInput>Optional custom renderer for the password input. Receives the bound value.
When None, a plain <input type="password"> is used.
render_submit: Option<RenderSubmit>Optional custom renderer for the submit control. Receives the submit callback
to wire up (e.g. on_click). When None, a plain <input type="submit"> is used.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LoginParams
impl !RefUnwindSafe for LoginParams
impl !Send for LoginParams
impl !Sync for LoginParams
impl !UnwindSafe for LoginParams
impl Unpin for LoginParams
impl UnsafeUnpin for LoginParams
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more