pub struct FormState {
pub errors: BTreeMap<String, String>,
pub message: Option<String>,
pub values: BTreeMap<String, String>,
}Expand description
Result of the last progressive-enhancement form submission (validation errors / error message), read once from a short-lived flash cookie.
Fields§
§errors: BTreeMap<String, String>§message: Option<String>§values: BTreeMap<String, String>Implementations§
Trait Implementations§
impl Eq for FormState
Source§impl FromContext for FormState
impl FromContext for FormState
fn from_context(ctx: &Arc<RequestContext>) -> Result<FormState, Error>
impl StructuralPartialEq for FormState
Auto Trait Implementations§
impl Forget for FormState
impl Freeze for FormState
impl Move for FormState
impl RefUnwindSafe for FormState
impl Send for FormState
impl Sync for FormState
impl Unpin for FormState
impl UnsafeUnpin for FormState
impl UnwindSafe for FormState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.