Skip to main content

IntoFormValue

Trait IntoFormValue 

Source
pub trait IntoFormValue {
    // Required method
    fn into_form_value(self) -> FormValue;
}
Expand description

A value a field’s default takes: any FormScalar or a &str or &String in the form spelling, or an array or Vec of them for a multiple choice.

Required Methods§

Source

fn into_form_value(self) -> FormValue

The value as its control posts it.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoFormValue for &String

Source§

impl IntoFormValue for &str

Source§

impl IntoFormValue for Vec<&str>

Source§

impl<T: FormScalar, const N: usize> IntoFormValue for [T; N]

Source§

impl<T: FormScalar> IntoFormValue for Vec<T>

Source§

impl<const N: usize> IntoFormValue for [&str; N]

Implementors§