pub trait MaybeText {
// Required method
fn into_text(self) -> Option<String>;
}Expand description
Text that may be absent: &str, String or an Option of either, so
error_message = form.error("email") works as is.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".