DynInput

Trait DynInput 

Source
pub trait DynInput<S: ContextTrait>: Debug {
    // Required method
    fn render_input(
        &self,
        name: &str,
        title: &str,
        required: bool,
        ctx: &FormRenderContext<'_, S>,
        i18n: &FluentLanguageLoader,
    ) -> Markup;
}
Expand description

object safe trait that is automatically implemented for Option<T> where T implements Input

Required Methods§

Source

fn render_input( &self, name: &str, title: &str, required: bool, ctx: &FormRenderContext<'_, S>, i18n: &FluentLanguageLoader, ) -> Markup

Implementations on Foreign Types§

Source§

impl<T: Input<S>, S: ContextTrait> DynInput<S> for Option<&T>

Source§

fn render_input( &self, name: &str, title: &str, required: bool, ctx: &FormRenderContext<'_, S>, i18n: &FluentLanguageLoader, ) -> Markup

Implementors§