#[non_exhaustive]pub enum EditableColumnFault {
NoForm,
Unplaced,
OtherControl(&'static str),
OtherOptions,
Conditional,
Disabled,
}Expand description
Why a column cannot edit its field in place:
DeclarationErrorKind::EditableColumn.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoForm
The resource has no form, so no edit route takes the cell’s post.
Give the resource a form, or show the field read-only.
Unplaced
The resource’s record form binds no control for the field.
Bind the field in the record form.
OtherControl(&'static str)
The form edits the field with another control than the column’s, carrying the one the
column needs: a checkbox or switch for a ToggleColumn, a choice over static options for
a SelectColumn, a one-line text field for a TextInputColumn.
Edit the field with that control, or pick the column that matches the form’s.
OtherOptions
The form’s choice offers other options than the SelectColumn’s type, or labels them
otherwise: the cell would offer a value the form refuses.
Offer the type’s options in the form, or show the field read-only.
Conditional
The form’s control shows only while a condition holds, which reads fields the cell does not post.
Show the field read-only.
Disabled
The form’s control is disabled on the edit form, so the edit route drops what it posts.
Show the field read-only.
Trait Implementations§
Source§impl Clone for EditableColumnFault
impl Clone for EditableColumnFault
Source§impl Debug for EditableColumnFault
impl Debug for EditableColumnFault
impl Eq for EditableColumnFault
Source§impl PartialEq for EditableColumnFault
impl PartialEq for EditableColumnFault
impl StructuralPartialEq for EditableColumnFault
Auto Trait Implementations§
impl Forget for EditableColumnFault
impl Freeze for EditableColumnFault
impl RefUnwindSafe for EditableColumnFault
impl Send for EditableColumnFault
impl Sync for EditableColumnFault
impl Unpin for EditableColumnFault
impl UnsafeUnpin for EditableColumnFault
impl UnwindSafe for EditableColumnFault
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
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
key and return true if they are equal.