#[non_exhaustive]pub enum ActionInputFault {
ReservedField(String),
FileField(String),
RefusesEmpty,
DependentChoice(String),
}Expand description
Why an action’s input cannot be served:
DeclarationErrorKind::ActionInput.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ReservedField(String)
A field named like a key the action’s POST carries itself: csrf_token, confirm or
ids.
Rename the field.
FileField(String)
A file field, whose upload an action’s POST does not read.
Take the file in a record form.
RefusesEmpty
No field, but a parse that refuses an empty submission, so the action could never run.
Declare the fields it parses, or use ().
DependentChoice(String)
A dependent choice, whose options no route serves an action’s input.
Drop depends_on.
Trait Implementations§
Source§impl Clone for ActionInputFault
impl Clone for ActionInputFault
Source§impl Debug for ActionInputFault
impl Debug for ActionInputFault
impl Eq for ActionInputFault
Source§impl PartialEq for ActionInputFault
impl PartialEq for ActionInputFault
impl StructuralPartialEq for ActionInputFault
Auto Trait Implementations§
impl Forget for ActionInputFault
impl Freeze for ActionInputFault
impl Move for ActionInputFault
impl RefUnwindSafe for ActionInputFault
impl Send for ActionInputFault
impl Sync for ActionInputFault
impl Unpin for ActionInputFault
impl UnsafeUnpin for ActionInputFault
impl UnwindSafe for ActionInputFault
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.