pub trait Input<S: ContextTrait>: Debug {
// Required method
fn render_input(
value: Option<&Self>,
name: &str,
name_human: &str,
required: bool,
ctx: &FormRenderContext<'_, S>,
i18n: &FluentLanguageLoader,
) -> Markup;
}
Expand description
A property of an entity or nested within another property that can be input in a HTML form
Required Methods§
fn render_input( value: Option<&Self>, name: &str, name_human: &str, required: bool, ctx: &FormRenderContext<'_, S>, i18n: &FluentLanguageLoader, ) -> Markup
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.